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.
79 80 81 |
# File 'lib/cucumber/hooks.rb', line 79 def initialize(location) @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
77 78 79 |
# File 'lib/cucumber/hooks.rb', line 77 def location @location end |
Instance Method Details
#describe_to(visitor, *args) ⇒ Object
91 92 93 |
# File 'lib/cucumber/hooks.rb', line 91 def describe_to(visitor, *args) visitor.after_step_hook(self, *args) end |
#match_locations?(queried_locations) ⇒ Boolean
87 88 89 |
# File 'lib/cucumber/hooks.rb', line 87 def match_locations?(queried_locations) queried_locations.any? { |other_location| other_location.match?(location) } end |
#name ⇒ Object
83 84 85 |
# File 'lib/cucumber/hooks.rb', line 83 def name "AfterStep hook" end |