Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Extractor class #3

Merged
merged 2 commits into from
Oct 2, 2020
Merged

Add Extractor class #3

merged 2 commits into from
Oct 2, 2020

Conversation

noriyotcp
Copy link
Owner

Separate CLI and logic to extract

Enable to create an instance in irb like this:

❯ irb
> require 'headown'
=> true
> extractor = Headown::Extractor.new('spec/headown/sample.md')
> extractor.headers
=> ["# h1", "## h2", "### h3", "#### h4", "##### h5", "###### h6"]

@noriyotcp noriyotcp merged commit ebe29e2 into main Oct 2, 2020
@noriyotcp noriyotcp deleted the extractor-class branch October 2, 2020 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant