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

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

@jeremybmerrill

Description

@jeremybmerrill

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions