Class: Ibex::Equiv::Machine::Configuration
- Inherits:
-
Object
- Object
- Ibex::Equiv::Machine::Configuration
- Defined in:
- lib/ibex/equiv/machine.rb,
sig/ibex/equiv/machine.rbs
Overview
One product-search component.
Instance Attribute Summary collapse
- #actions ⇒ Integer readonly
- #reductions ⇒ Array[Integer] readonly
- #stack ⇒ Array[Integer] readonly
- #status ⇒ Symbol? readonly
Instance Method Summary collapse
-
#initialize(stack:, status:, actions:, reductions: []) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(stack:, status:, actions:, reductions: []) ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 22 23 24 |
# File 'lib/ibex/equiv/machine.rb', line 18 def initialize(stack:, status:, actions:, reductions: []) @stack = stack.freeze @status = status @actions = actions @reductions = reductions.freeze freeze end |
Instance Attribute Details
#actions ⇒ Integer (readonly)
14 15 16 |
# File 'lib/ibex/equiv/machine.rb', line 14 def actions @actions end |
#reductions ⇒ Array[Integer] (readonly)
15 16 17 |
# File 'lib/ibex/equiv/machine.rb', line 15 def reductions @reductions end |
#stack ⇒ Array[Integer] (readonly)
12 13 14 |
# File 'lib/ibex/equiv/machine.rb', line 12 def stack @stack end |
#status ⇒ Symbol? (readonly)
13 14 15 |
# File 'lib/ibex/equiv/machine.rb', line 13 def status @status end |