Class: DopCommon::StepSet
- Inherits:
-
Object
- Object
- DopCommon::StepSet
- Includes:
- Validator
- Defined in:
- lib/dop_common/step_set.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, steps_array) ⇒ StepSet
constructor
A new instance of StepSet.
- #steps ⇒ Object
- #validate ⇒ Object
Methods included from Validator
#log_validation_method, #set_not_valid, #try_validate_obj, #valid?
Constructor Details
#initialize(name, steps_array) ⇒ StepSet
Returns a new instance of StepSet.
11 12 13 14 |
# File 'lib/dop_common/step_set.rb', line 11 def initialize(name, steps_array) @name = name @steps_array = steps_array end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/dop_common/step_set.rb', line 9 def name @name end |
Instance Method Details
#steps ⇒ Object
21 22 23 |
# File 'lib/dop_common/step_set.rb', line 21 def steps @steps ||= steps_valid? ? create_steps : nil end |
#validate ⇒ Object
16 17 18 19 |
# File 'lib/dop_common/step_set.rb', line 16 def validate log_validation_method(:steps_valid?) try_validate_obj("StepSet #{name}: Can't validate the steps part because of a previous error"){steps} end |