Sha256: 5e6cf4bdc839d7066f2fffa24673b77645fb90fc96b75d5ff49361e20f7cec3e

Contents?: true

Size: 631 Bytes

Versions: 99

Compression:

Stored size: 631 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, :file_colon_line
    
    def initialize(regexp_source, file_colon_line)
      @regexp_source, @file_colon_line = regexp_source, file_colon_line
    end
    
    def eql?(o)
      regexp_source == o.regexp_source && file_colon_line == o.file_colon_line
    end
    
    def hash
      regexp_source.hash + 31*file_colon_line.hash
    end
  end
end

Version data entries

99 entries across 97 versions & 15 rubygems

Version Path
cucumber-1.1.9 lib/cucumber/step_definition_light.rb
cucumber-1.1.8 lib/cucumber/step_definition_light.rb
cucumber-1.1.7 lib/cucumber/step_definition_light.rb
cucumber-1.1.6 lib/cucumber/step_definition_light.rb
cucumber-1.1.5 lib/cucumber/step_definition_light.rb
cucumber-1.1.4 lib/cucumber/step_definition_light.rb
cucumber-1.1.3 lib/cucumber/step_definition_light.rb
cucumber-1.1.2 lib/cucumber/step_definition_light.rb
cucumber-1.1.1 lib/cucumber/step_definition_light.rb
js-log-cucumber-1.0.2 lib/cucumber/step_definition_light.rb
cucumber-1.1.0 lib/cucumber/step_definition_light.rb
cucumber-1.0.6 lib/cucumber/step_definition_light.rb
cucumber-1.0.5 lib/cucumber/step_definition_light.rb
cucumber-1.0.4 lib/cucumber/step_definition_light.rb
cucumber-1.0.3 lib/cucumber/step_definition_light.rb
cucumber-1.0.2 lib/cucumber/step_definition_light.rb
cucumber-1.0.1 lib/cucumber/step_definition_light.rb
cucumber-1.0.0 lib/cucumber/step_definition_light.rb
cucumber-0.8.7 lib/cucumber/step_definition_light.rb
cucumber-0.8.6 lib/cucumber/step_definition_light.rb