Class: Yasm::Context::StateConfiguration
- Inherits:
-
Object
- Object
- Yasm::Context::StateConfiguration
- Defined in:
- lib/yasm/context/state_configuration.rb
Instance Attribute Summary collapse
-
#start_state ⇒ Object
readonly
Returns the value of attribute start_state.
Instance Method Summary collapse
-
#initialize(start_state = nil) ⇒ StateConfiguration
constructor
A new instance of StateConfiguration.
- #start(state) ⇒ Object
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_state ⇒ Object (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 |