class Cucumber::Core::Test::Step
def action_location
def action_location @action.location end
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(*args)
def execute(*args) @action.execute(*args) end
def initialize(source, action = Test::UndefinedAction.new(source.last.location))
def initialize(source, action = Test::UndefinedAction.new(source.last.location)) raise ArgumentError if source.any?(&:nil?) @source, @action = source, action end
def inspect
def inspect "#<#{self.class}: #{location}>" end
def location
def location source.last.location end
def skip(*args)
def skip(*args) @action.skip(*args) end
def text
def text source.last.text end
def to_s
def to_s text end
def with_action(location = nil, &block)
def with_action(location = nil, &block) self.class.new(source, Test::Action.new(location, &block)) end