Class: Cucumber::Hooks::AfterStepHook
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #describe_to(visitor, *args) ⇒ Object
-
#initialize(location) ⇒ AfterStepHook
constructor
A new instance of AfterStepHook.
- #match_locations?(queried_locations) ⇒ Boolean
- #name ⇒ Object
Constructor Details
#initialize(location) ⇒ AfterStepHook
Returns a new instance of AfterStepHook.
81 82 83 |
# File 'lib/cucumber/hooks.rb', line 81 def initialize(location) @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
79 80 81 |
# File 'lib/cucumber/hooks.rb', line 79 def location @location end |
Instance Method Details
#describe_to(visitor, *args) ⇒ Object
93 94 95 |
# File 'lib/cucumber/hooks.rb', line 93 def describe_to(visitor, *args) visitor.after_step_hook(self, *args) end |
#match_locations?(queried_locations) ⇒ Boolean
89 90 91 |
# File 'lib/cucumber/hooks.rb', line 89 def match_locations?(queried_locations) queried_locations.any? { |other_location| other_location.match?(location) } end |
#name ⇒ Object
85 86 87 |
# File 'lib/cucumber/hooks.rb', line 85 def name "AfterStep hook" end |