Class: Cucumber::StepMatchSearch::AttemptToGuessAmbiguousMatch
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/step_match_search.rb', line 33 def call(step_name) best_matches(step_name, @search.call(step_name)) end |