Class: TestCaseGenerator::Fork
- Inherits:
-
Object
- Object
- TestCaseGenerator::Fork
- Defined in:
- lib/test_case_generator/state_machine.rb
Instance Attribute Summary collapse
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(state, attrs = {}) ⇒ Fork
constructor
A new instance of Fork.
- #items ⇒ Object
Constructor Details
#initialize(state, attrs = {}) ⇒ Fork
Returns a new instance of Fork.
34 35 36 37 |
# File 'lib/test_case_generator/state_machine.rb', line 34 def initialize(state, attrs={}) @state = state @attrs = attrs end |
Instance Attribute Details
#state ⇒ Object (readonly)
Returns the value of attribute state.
32 33 34 |
# File 'lib/test_case_generator/state_machine.rb', line 32 def state @state end |
Instance Method Details
#items ⇒ Object
39 40 41 |
# File 'lib/test_case_generator/state_machine.rb', line 39 def items @attrs[:items] || [] end |