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 885

def initialize(goto)
  @goto_state = goto
end

Instance Attribute Details

#goto_state (readonly)

[ GitHub ]

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

attr_reader :goto_state

Instance Method Details

#goto_id

[ GitHub ]

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

def goto_id
  @goto_state.ident
end

#inspect

[ GitHub ]

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

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