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
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/lib/cucumber/step_definition_light.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/lib/cucumber/step_definition_light.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/lib/cucumber/step_definition_light.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/lib/cucumber/step_definition_light.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/lib/cucumber/step_definition_light.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/lib/cucumber/step_definition_light.rb
casecumber-1.0.2.1 lib/cucumber/step_definition_light.rb
casecumber-1.2.1.cb2 lib/cucumber/step_definition_light.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/lib/cucumber/step_definition_light.rb
cucumber-1.2.1 lib/cucumber/step_definition_light.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definition_light.rb
ftl-0.2.0 vendor/bundle/gems/cucumber-1.2.0/lib/cucumber/step_definition_light.rb
cucumber-1.2.0 lib/cucumber/step_definition_light.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definition_light.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definition_light.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definition_light.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definition_light.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definition_light.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definition_light.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/cucumber-1.1.9/lib/cucumber/step_definition_light.rb