Class: Cucumber::StepMatchSearch::CachesStepMatch

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

Instance Method Summary collapse

Instance Method Details

#call(step_name) ⇒ Object

:nodoc:


56
57
58
59
60
61
62
63
# File 'lib/cucumber/step_match_search.rb', line 56

def call(step_name) #:nodoc:
  @match_cache ||= {}

  matches = @match_cache[step_name]
  return matches if matches

  @match_cache[step_name] = super(step_name)
end