Class: Cucumber::StepMatchSearch::AttemptToGuessAmbiguousMatch
- Inherits:
-
Object
- Object
- Cucumber::StepMatchSearch::AttemptToGuessAmbiguousMatch
- Defined in:
- lib/cucumber/step_match_search.rb
Instance Method Summary collapse
- #call(step_name) ⇒ Object
-
#initialize(search) ⇒ AttemptToGuessAmbiguousMatch
constructor
A new instance of AttemptToGuessAmbiguousMatch.
Constructor Details
#initialize(search) ⇒ AttemptToGuessAmbiguousMatch
Returns a new instance of AttemptToGuessAmbiguousMatch.
29 30 31 |
# File 'lib/cucumber/step_match_search.rb', line 29 def initialize(search) @search = search end |
Instance Method Details
#call(step_name) ⇒ Object
33 34 35 |
# File 'lib/cucumber/step_match_search.rb', line 33 def call(step_name) best_matches(step_name, @search.call(step_name)) end |