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.



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

def initialize(goto)
  @goto_state = goto
end

Instance Attribute Details

#goto_stateObject (readonly)

Returns the value of attribute goto_state.



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

def goto_state
  @goto_state
end

Instance Method Details

#goto_idObject



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

def goto_id
  @goto_state.ident
end

#inspectObject



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

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