class Cucumberator::Steps
Public Class Methods
new(scenario)
click to toggle source
# File lib/cucumberator/steps.rb, line 3 def initialize(scenario) @scenario = scenario end
Public Instance Methods
all()
click to toggle source
# File lib/cucumberator/steps.rb, line 7 def all @steps ||= all_defined_steps end
all_defined_steps()
click to toggle source
# File lib/cucumberator/steps.rb, line 11 def all_defined_steps support_code = current_visitor.runtime.instance_variable_get("@support_code") support_code.step_definitions.map { |sd| sd.regexp_source } end
current_visitor()
click to toggle source
# File lib/cucumberator/steps.rb, line 16 def current_visitor @current_visitor ||= @scenario.instance_variable_get("@current_visitor") end