Class: Cucumber::StepMatchSearch::CachesStepMatch

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/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/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/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