Module: Cucumber::StepMatchSearch

Defined in:
lib/cucumber/step_match_search.rb

Defined Under Namespace

Classes: AssertUnambiguousMatch, AttemptToGuessAmbiguousMatch, CachesStepMatch

Class Method Summary collapse

Class Method Details

.new(search, configuration) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/cucumber/step_match_search.rb', line 5

def self.new(search, configuration)
  CachesStepMatch.new(
    AssertUnambiguousMatch.new(
      configuration.guess? ? AttemptToGuessAmbiguousMatch.new(search) : search,
      configuration
    )
  )
end