Class: Ibex::Equiv::Machine::Configuration
- Inherits:
-
Object
- Object
- Ibex::Equiv::Machine::Configuration
- Defined in:
- lib/ibex/equiv/machine.rb
Overview
One product-search component.
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
: Integer.
-
#reductions ⇒ Object
readonly
: Array.
-
#stack ⇒ Object
readonly
: Array.
-
#status ⇒ Object
readonly
: Symbol?.
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 ⇒ Object (readonly)
: Integer
14 15 16 |
# File 'lib/ibex/equiv/machine.rb', line 14 def actions @actions end |
#reductions ⇒ Object (readonly)
: Array
15 16 17 |
# File 'lib/ibex/equiv/machine.rb', line 15 def reductions @reductions end |
#stack ⇒ Object (readonly)
: Array
12 13 14 |
# File 'lib/ibex/equiv/machine.rb', line 12 def stack @stack end |
#status ⇒ Object (readonly)
: Symbol?
13 14 15 |
# File 'lib/ibex/equiv/machine.rb', line 13 def status @status end |