Class: Cucumber::Hooks::AfterHook
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/hooks.rb
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
- #text ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(location) ⇒ AfterHook
Returns a new instance of AfterHook.
42 43 44 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/hooks.rb', line 42 def initialize(location) @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
40 41 42 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/hooks.rb', line 40 def location @location end |
Instance Method Details
#describe_to(visitor, *args) ⇒ Object
58 59 60 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/hooks.rb', line 58 def describe_to(visitor, *args) visitor.after_hook(self, *args) end |
#match_locations?(queried_locations) ⇒ Boolean
54 55 56 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/hooks.rb', line 54 def match_locations?(queried_locations) queried_locations.any? { |other_location| other_location.match?(location) } end |
#text ⇒ Object
46 47 48 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/hooks.rb', line 46 def text 'After hook' end |
#to_s ⇒ Object
50 51 52 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/hooks.rb', line 50 def to_s "#{text} at #{location}" end |