Method: NoSE::Plans::PlanStep#parent_index
- Defined in:
- lib/nose/plans.rb
#parent_index ⇒ PlanStep
Find the closest index to this step
67 68 69 70 71 72 |
# File 'lib/nose/plans.rb', line 67 def parent_index step = parent_steps.to_a.reverse_each.find do |parent_step| parent_step.is_a? IndexLookupPlanStep end step.index unless step.nil? end |