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



27
28
29
# File 'lib/cucumber/step_match_search.rb', line 27

def initialize(search)
  @search = search
end

Instance Method Details

#call(step_name) ⇒ Object



31
32
33
# File 'lib/cucumber/step_match_search.rb', line 31

def call(step_name)
  best_matches(step_name, @search.call(step_name))
end