Class: Racc::Shift

Inherits:
Object show all
Defined in:
lib/racc/state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(goto) ⇒ Shift

Returns a new instance of Shift.



880
881
882
# File 'lib/racc/state.rb', line 880

def initialize(goto)
  @goto_state = goto
end

Instance Attribute Details

#goto_stateObject (readonly)

Returns the value of attribute goto_state.



884
885
886
# File 'lib/racc/state.rb', line 884

def goto_state
  @goto_state
end

Instance Method Details

#goto_idObject



886
887
888
# File 'lib/racc/state.rb', line 886

def goto_id
  @goto_state.ident
end

#inspectObject



890
891
892
# File 'lib/racc/state.rb', line 890

def inspect
  "<shift #{@goto_state.ident}>"
end