Parent

RubyParser::StackState

Attributes

stack[R]

Public Class Methods

new(name) click to toggle source
# File lib/ruby_parser_extras.rb, line 969
def initialize(name)
  @name = name
  @stack = [false]
end

Public Instance Methods

inspect() click to toggle source
# File lib/ruby_parser_extras.rb, line 974
def inspect
  "StackState(#{@name}, #{@stack.inspect})"
end
is_in_state() click to toggle source
# File lib/ruby_parser_extras.rb, line 978
def is_in_state
  @stack.last
end
lexpop() click to toggle source
# File lib/ruby_parser_extras.rb, line 982
def lexpop
  raise if @stack.size == 0
  a = @stack.pop
  b = @stack.pop
  @stack.push(a || b)
end
pop() click to toggle source
# File lib/ruby_parser_extras.rb, line 989
def pop
  r = @stack.pop
  @stack.push false if @stack.size == 0
  r
end
push(val) click to toggle source
# File lib/ruby_parser_extras.rb, line 995
def push val
  @stack.push val
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.