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:



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

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

  matches = @match_cache[step_name]
  return matches if matches

  @match_cache[step_name] = super(step_name)
end