class Cucumber::Hooks::BeforeHook

def describe_to(visitor, *args)

def describe_to(visitor, *args)
  visitor.before_hook(self, *args)
end

def initialize(location)

def initialize(location)
  @location = location
end

def match_locations?(queried_locations)

def match_locations?(queried_locations)
  queried_locations.any? { |other_location| other_location.match?(location) }
end

def text

def text
  'Before hook'
end

def to_s

def to_s
  "#{text} at #{location}"
end