method
peek
peek(depth=0)
public
Hide source
# File lib/rexml/parsers/pullparser.rb, line 56 def peek depth=0 if @my_stack.length <= depth (depth - @my_stack.length + 1).times { e = PullEvent.new(@parser.pull) @my_stack.push(e) } end @my_stack[depth] end