Class: Lrama::State::Shift

Inherits:
Object
  • Object
show all
Defined in:
lib/lrama/states.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(next_sym, next_items) ⇒ Shift

Returns a new instance of Shift.



42
43
44
45
# File 'lib/lrama/states.rb', line 42

def initialize(next_sym, next_items)
  @next_sym = next_sym
  @next_items = next_items
end

Instance Attribute Details

#next_itemsObject (readonly)

Returns the value of attribute next_items.



39
40
41
# File 'lib/lrama/states.rb', line 39

def next_items
  @next_items
end

#next_symObject (readonly)

Returns the value of attribute next_sym.



39
40
41
# File 'lib/lrama/states.rb', line 39

def next_sym
  @next_sym
end

#not_selectedObject

Returns the value of attribute not_selected.



40
41
42
# File 'lib/lrama/states.rb', line 40

def not_selected
  @not_selected
end