class Cucumber::Undefined

Raised when there is no matching StepDefinition for a step.

def self.from(result, step_name)

def self.from(result, step_name)
  if result.is_a?(self)
    return result.with_message(with_prefix(result.message))
  end
  begin
    raise self.new(with_prefix(step_name))
  rescue => exception
    return exception
  end
end

def self.with_prefix(step_name)

def self.with_prefix(step_name)
  %(Undefined step: "#{step_name}")
end