Class: Cucumber::Hooks::AfterHook
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #describe_to(visitor, *args) ⇒ Object
-
#initialize(location) ⇒ AfterHook
constructor
A new instance of AfterHook.
- #match_locations?(queried_locations) ⇒ Boolean
- #name ⇒ Object
Constructor Details
#initialize(location) ⇒ AfterHook
Returns a new instance of AfterHook.
41 42 43 |
# File 'lib/cucumber/hooks.rb', line 41 def initialize(location) @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
39 40 41 |
# File 'lib/cucumber/hooks.rb', line 39 def location @location end |
Instance Method Details
#describe_to(visitor, *args) ⇒ Object
53 54 55 |
# File 'lib/cucumber/hooks.rb', line 53 def describe_to(visitor, *args) visitor.after_hook(self, *args) end |
#match_locations?(queried_locations) ⇒ Boolean
49 50 51 |
# File 'lib/cucumber/hooks.rb', line 49 def match_locations?(queried_locations) queried_locations.any? { |other_location| other_location.match?(location) } end |
#name ⇒ Object
45 46 47 |
# File 'lib/cucumber/hooks.rb', line 45 def name "After hook" end |