class Cucumber::Core::Test::Step
def describe_source_to(visitor, *args)
def describe_source_to(visitor, *args) source.reverse.each do |node| node.describe_to(visitor, *args) end self end
def describe_to(visitor, *args)
def describe_to(visitor, *args) visitor.test_step(self, *args) end
def execute(last_result)
def execute(last_result) @mapping.execute(last_result) end
def initialize(source, mapping = Test::UndefinedAction.new)
def initialize(source, mapping = Test::UndefinedAction.new) raise ArgumentError if source.any?(&:nil?) @mapping = mapping super(source) end
def inspect
def inspect "<#{self.class}: #{location}>" end
def location
def location source.last.location end
def match_locations?(queried_locations)
def match_locations?(queried_locations) return true if queried_locations.include? location source.any? { |s| s.match_locations?(queried_locations) } end
def name
def name source.last.name end
def skip(last_result)
def skip(last_result) @mapping.skip(last_result) end
def with_mapping(&block)
def with_mapping(&block) self.class.new(source, Test::Action.new(&block)) end