Class: Cucumber::StepMatchSearch::AttemptToGuessAmbiguousMatch

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/step_match_search.rb

Instance Method Summary collapse

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