Method: ParseQueue#get

Defined in:
lib/parse_queue.rb

#getObject

Get an item from the buffer.



34
35
36
37
38
39
40
# File 'lib/parse_queue.rb', line 34

def get
  @buffer << fetch_one if @position == index_limit

  result = @buffer[rev_count]
  @position += 1
  result
end