Class: TestCaseGenerator::Path
- Inherits:
-
Object
- Object
- TestCaseGenerator::Path
- Defined in:
- lib/test_case_generator/state_machine.rb
Instance Attribute Summary collapse
-
#dest_state ⇒ Object
readonly
Returns the value of attribute dest_state.
-
#src_state ⇒ Object
readonly
Returns the value of attribute src_state.
Instance Method Summary collapse
-
#initialize(src_state, dest_state, attrs = {}) ⇒ Path
constructor
A new instance of Path.
- #items ⇒ Object
Constructor Details
#initialize(src_state, dest_state, attrs = {}) ⇒ Path
Returns a new instance of Path.
7 8 9 10 11 |
# File 'lib/test_case_generator/state_machine.rb', line 7 def initialize(src_state, dest_state, attrs={}) @src_state = src_state @dest_state = dest_state @attrs = attrs end |
Instance Attribute Details
#dest_state ⇒ Object (readonly)
Returns the value of attribute dest_state.
5 6 7 |
# File 'lib/test_case_generator/state_machine.rb', line 5 def dest_state @dest_state end |
#src_state ⇒ Object (readonly)
Returns the value of attribute src_state.
5 6 7 |
# File 'lib/test_case_generator/state_machine.rb', line 5 def src_state @src_state end |
Instance Method Details
#items ⇒ Object
13 14 15 |
# File 'lib/test_case_generator/state_machine.rb', line 13 def items @attrs[:items] || [] end |