class Lingo::Filter::PDF

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/lingo/filter/pdf.rb, line 35
def initialize(*args)
  super
  @obj = ::PDF::Reader.new(@io)
end

Public Instance Methods

each(&block) click to toggle source
# File lib/lingo/filter/pdf.rb, line 40
def each(&block)
  @obj.pages.each { |x| x.text.each_line(&block) }
end