Parent

Methods

Files

Parslet::Scope

Public Class Methods

new() click to toggle source
# File lib/parslet/scope.rb, line 32
def initialize
  @current = Binding.new
end

Public Instance Methods

[](k) click to toggle source
# File lib/parslet/scope.rb, line 25
def [](k)
  @current[k]
end
[]=(k,v) click to toggle source
# File lib/parslet/scope.rb, line 28
def []=(k,v)
  @current[k] = v
end
pop() click to toggle source
# File lib/parslet/scope.rb, line 39
def pop
  @current = @current.parent
end
push() click to toggle source
# File lib/parslet/scope.rb, line 36
def push
  @current = Binding.new(@current)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.