Class: Yasm::Context::StateConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/yasm/context/state_configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(start_state = nil) ⇒ StateConfiguration

Returns a new instance of StateConfiguration.



6
7
8
# File 'lib/yasm/context/state_configuration.rb', line 6

def initialize(start_state = nil)
  @start_state = start_state
end

Instance Attribute Details

#start_stateObject (readonly)

Returns the value of attribute start_state.



4
5
6
# File 'lib/yasm/context/state_configuration.rb', line 4

def start_state
  @start_state
end

Instance Method Details

#start(state) ⇒ Object



10
11
12
# File 'lib/yasm/context/state_configuration.rb', line 10

def start(state)
  @start_state = state
end