Sha256: f10da9cae8776b04f113938c18dc1e0e7c1f34916bace2b25f5361710450c6b5

Contents?: true

Size: 576 Bytes

Versions: 11

Compression:

Stored size: 576 Bytes

Contents

module Cucumber
  # 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).
  class StepDefinitionLight
    attr_reader :regexp_source, :location

    def initialize(regexp_source, location)
      @regexp_source, @location = regexp_source, location
    end

    def eql?(o)
      regexp_source == o.regexp_source && location == o.location
    end

    def hash
      regexp_source.hash + 31*location.to_s.hash
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
cucumber-2.99.0 lib/cucumber/step_definition_light.rb
mobiusloop-0.1.5 lib/cucumber/step_definition_light.rb
cucumber-2.4.0 lib/cucumber/step_definition_light.rb
mobiusloop-0.1.3 lib/cucumber/step_definition_light.rb
mobiusloop-0.1.2 lib/cucumber/step_definition_light.rb
cucumber-2.3.3 lib/cucumber/step_definition_light.rb
cucumber-2.3.2 lib/cucumber/step_definition_light.rb
cucumber-2.3.1 lib/cucumber/step_definition_light.rb
cucumber-2.3.0 lib/cucumber/step_definition_light.rb
cucumber-2.2.0 lib/cucumber/step_definition_light.rb
cucumber-2.1.0 lib/cucumber/step_definition_light.rb