class Cucumberator::Commands::Steps
Public Class Methods
all_steps(scenario)
click to toggle source
# File lib/cucumberator/commands/steps.rb, line 14 def all_steps(scenario) @steps ||= Cucumberator::Steps.new(scenario).all end
perform(scenario, *args, &block)
click to toggle source
# File lib/cucumberator/commands/steps.rb, line 4 def perform(scenario, *args, &block) steps = all_steps(scenario) if steps and steps.size > 0 puts ":: Yay, you have #{@steps.size} steps in your pocket:" steps.each { |s| puts s } else puts ":: Sorry, no steps detected" end end