Class: StepMaster::Possible
- Inherits:
-
Hash
- Object
- Hash
- StepMaster::Possible
- Defined in:
- lib/step_master/possible.rb
Constant Summary collapse
- EMPTY =
Possible.new
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#line_number ⇒ Object
readonly
Returns the value of attribute line_number.
Instance Method Summary collapse
Instance Attribute Details
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
5 6 7 |
# File 'lib/step_master/possible.rb', line 5 def file_path @file_path end |
#line_number ⇒ Object (readonly)
Returns the value of attribute line_number.
5 6 7 |
# File 'lib/step_master/possible.rb', line 5 def line_number @line_number end |
Instance Method Details
#file ⇒ Object
22 23 24 25 26 |
# File 'lib/step_master/possible.rb', line 22 def file if @file_path [@file_path, @line_number].compact.join(":") end end |
#result ⇒ Object
18 19 20 |
# File 'lib/step_master/possible.rb', line 18 def result @result end |
#terminal!(result, options = {}) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/step_master/possible.rb', line 7 def terminal!(result, = {}) @terminal = true @result = result @file_path = [:file_path].freeze @line_number = [:line_number].freeze end |
#terminal? ⇒ Boolean
14 15 16 |
# File 'lib/step_master/possible.rb', line 14 def terminal? @terminal end |