Method: Cucumber::Runtime::SupportCode#step_match

Defined in:
lib/cucumber/runtime/support_code.rb

#step_match(step_name, name_to_report = nil) ⇒ Object

:nodoc:



132
133
134
135
136
137
138
139
# File 'lib/cucumber/runtime/support_code.rb', line 132

def step_match(step_name, name_to_report=nil) #:nodoc:
  @match_cache ||= {}

  match = @match_cache[[step_name, name_to_report]]
  return match if match

  @match_cache[[step_name, name_to_report]] = step_match_without_cache(step_name, name_to_report)
end