Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

extract methods on an Extractor object should take a block #91

Open
jeremybmerrill opened this issue Jan 7, 2015 · 0 comments
Open

Comments

@jeremybmerrill
Copy link
Member

So rather than doing like this

extractor = Tabula::Extraction::ObjectExtractor.new(pdf_filename, [1])).extract
extractor.each &:whatever
extractor.close!

we can do something like

extractor = Tabula::Extraction::ObjectExtractor.new(pdf_filename, [1])).extract do |extractor|
    extractor.each &:whatever
end

which is far more rubyish

obviously, might be worth holding off on doing this until we merge in tabula-java and tabula-extractor is just the ruby bindings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant