lib/parsers/pdf_parser.rb
# Read ahead bytes until no more numbers are found
# This assumes that the position of io starts at a
# number
Read ahead bytes until no more numbers are found
This assumes that the position of io starts at a
number
Read ahead bytes until no more numbers are found This assumes that the position of io starts at a number
def read_numbers(io)
    numbers = ''
    while c = safe_read(io, 1)
      c =~ /\d+/ ? numbers << c : break
    end
    numbers.to_i
  end
def read_numbers ( io ) numbers = '' while c = safe_read ( io , 1 ) c =~ / \d + / ? numbers << c : break end numbers . to_i end
Read ahead bytes until no more numbers are found
This assumes that the position of io starts at a
number
Read ahead bytes until no more numbers are found This assumes that the position of io starts at a number
io