Exception: Trailblazer::Activity::DSL::Linear::Sequence::IndexError
- Inherits:
-
IndexError
- Object
- IndexError
- Trailblazer::Activity::DSL::Linear::Sequence::IndexError
- Defined in:
- lib/trailblazer/activity/dsl/linear.rb
Instance Attribute Summary collapse
-
#step_id ⇒ Object
readonly
Returns the value of attribute step_id.
Instance Method Summary collapse
-
#initialize(sequence, step_id) ⇒ IndexError
constructor
A new instance of IndexError.
Constructor Details
#initialize(sequence, step_id) ⇒ IndexError
Returns a new instance of IndexError.
43 44 45 46 47 48 49 |
# File 'lib/trailblazer/activity/dsl/linear.rb', line 43 def initialize(sequence, step_id) @step_id = step_id valid_ids = sequence.collect{ |row| row[3][:id].inspect } = %{#{@step_id.inspect} is not a valid step ID. Did you mean any of these ?\n#{valid_ids.join("\n")}} super() end |
Instance Attribute Details
#step_id ⇒ Object (readonly)
Returns the value of attribute step_id.
41 42 43 |
# File 'lib/trailblazer/activity/dsl/linear.rb', line 41 def step_id @step_id end |