Method: PDF::Reader::Parser#array

Defined in:
lib/pdf/reader/parser.rb

#arrayObject

reads a PDF array from the buffer and converts it to a Ruby Array.



88
89
90
91
92
93
94
95
96
97
98
# File 'lib/pdf/reader/parser.rb', line 88

def array
  a = []

  loop do
    item = parse_token
    break if item.kind_of?(Token) and item == "]"
    a << item
  end

  a
end