Method: PDF::Reader::Buffer#empty?

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

#empty?Boolean

return true if there are no more tokens left

Returns:

  • (Boolean)


90
91
92
93
94
# File 'lib/pdf/reader/buffer.rb', line 90

def empty?
  prepare_tokens if @tokens.size < 3

  @tokens.empty?
end