class Cucumber::Hooks::AfterStepHook

Attributes

location[R]

Public Class Methods

new(location) click to toggle source
# File lib/cucumber/hooks.rb, line 88
def initialize(location)
  @location = location
end

Public Instance Methods

describe_to(visitor, *args) click to toggle source
# File lib/cucumber/hooks.rb, line 104
def describe_to(visitor, *args)
  visitor.after_step_hook(self, *args)
end
match_locations?(queried_locations) click to toggle source
# File lib/cucumber/hooks.rb, line 100
def match_locations?(queried_locations)
  queried_locations.any? { |other_location| other_location.match?(location) }
end
text() click to toggle source
# File lib/cucumber/hooks.rb, line 92
def text
  'AfterStep hook'
end
to_s() click to toggle source
# File lib/cucumber/hooks.rb, line 96
def to_s
  "#{text} at #{location}"
end