Method: NoSE::Plans::PlanStep#to_color

Defined in:
lib/nose/plans.rb

#to_colorObject

:nocov:



20
21
22
23
24
# File 'lib/nose/plans.rb', line 20

def to_color
  # Split on capital letters and remove the last two parts (PlanStep)
  self.class.name.split('::').last.split(/(?=[A-Z])/)[0..-3] \
    .map(&:downcase).join(' ').capitalize
end