Class: Racc::Shift
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/racc/state.rb |
Class Method Summary
- .new(goto) ⇒ Shift constructor
Instance Attribute Summary
- #goto_state readonly
Instance Method Summary
Constructor Details
.new(goto) ⇒ Shift
# File 'lib/racc/state.rb', line 881
def initialize(goto) @goto_state = goto end
Instance Attribute Details
#goto_state (readonly)
[ GitHub ]# File 'lib/racc/state.rb', line 885
attr_reader :goto_state
Instance Method Details
#goto_id
[ GitHub ]# File 'lib/racc/state.rb', line 887
def goto_id @goto_state.ident end
#inspect
[ GitHub ]# File 'lib/racc/state.rb', line 891
def inspect "<shift #{@goto_state.ident}>" end