method

peek

ruby latest stable - Class: RubyLex

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.

peek(i = 0)
public

No documentation available.

# File lib/irb/ruby-lex.rb, line 179
  def peek(i = 0)
    while @rests.size <= i
      return nil unless buf_input
    end
    @rests[i]
  end