class Cucumber::StepDefinitionLight

TODO: pointless, ancient, kill with fire. Only used for keeping track of available and invoked step definitions in a way that also works for other programming languages (i.e. cuke4duke) Used for reporting purposes only (usage formatter).

Attributes

location[R]
regexp_source[R]

Public Class Methods

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

Public Instance Methods

eql?(other) click to toggle source
# File lib/cucumber/step_definition_light.rb, line 16
def eql?(other)
  regexp_source == other.regexp_source && location == other.location
end
hash() click to toggle source
# File lib/cucumber/step_definition_light.rb, line 20
def hash
  regexp_source.hash + 31 * location.to_s.hash
end