Method: Cucumber::Ambiguous#initialize
- Defined in:
- lib/cucumber/errors.rb
#initialize(step_name, step_definitions, used_guess) ⇒ Ambiguous
Returns a new instance of Ambiguous.
26 27 28 29 30 31 32 |
# File 'lib/cucumber/errors.rb', line 26 def initialize(step_name, step_definitions, used_guess) = "Ambiguous match of \"#{step_name}\":\n\n" << step_definitions.map{|sd| sd.backtrace_line}.join("\n") << "\n\n" << "You can run again with --guess to make Cucumber be more smart about it\n" unless used_guess super() end |