Class: NoSE::Plans::RootPlanStep

Inherits:
PlanStep show all
Defined in:
lib/nose/plans.rb

Overview

The root of a tree of statement plans used as a placeholder

Instance Attribute Summary

Attributes inherited from PlanStep

#children, #cost, #fields, #parent, #state

Instance Method Summary collapse

Methods inherited from PlanStep

#add_fields_from_index, #calculate_cost, inherited, #parent_index, #parent_steps, #to_color

Methods included from Supertype

included

Constructor Details

#initialize(state) ⇒ RootPlanStep

Returns a new instance of RootPlanStep.



96
97
98
99
100
# File 'lib/nose/plans.rb', line 96

def initialize(state)
  super()
  @state = state
  @cost = 0
end