Class: Ibex::Equiv::Machine::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ibex/equiv/machine.rb

Overview

One product-search component.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionsObject (readonly)

: Integer



14
15
16
# File 'lib/ibex/equiv/machine.rb', line 14

def actions
  @actions
end

#reductionsObject (readonly)

: Array



15
16
17
# File 'lib/ibex/equiv/machine.rb', line 15

def reductions
  @reductions
end

#stackObject (readonly)

: Array



12
13
14
# File 'lib/ibex/equiv/machine.rb', line 12

def stack
  @stack
end

#statusObject (readonly)

: Symbol?



13
14
15
# File 'lib/ibex/equiv/machine.rb', line 13

def status
  @status
end