123456789_123456789_123456789_123456789_123456789_

Class: Racc::Shift

Relationships & Source Files
Inherits: Object
Defined in: lib/racc/state.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(goto) ⇒ Shift

[ GitHub ]

  
# File 'lib/racc/state.rb', line 878

def initialize(goto)
  @goto_state = goto
end

Instance Attribute Details

#goto_state (readonly)

[ GitHub ]

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

attr_reader :goto_state

Instance Method Details

#goto_id

[ GitHub ]

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

def goto_id
  @goto_state.ident
end

#inspect

[ GitHub ]

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

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