Sha256: ffeb3981efb38bb6e78ca3d953f9ccdf2aba0df5c3a3d36e925f1bc4e170b3a8

Contents?: true

Size: 617 Bytes

Versions: 11

Compression:

Stored size: 617 Bytes

Contents

module Lucid
  # 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

11 entries across 11 versions & 1 rubygems

Version Path
lucid-0.3.3 lib/lucid/step_definition_light.rb
lucid-0.3.0 lib/lucid/step_definition_light.rb
lucid-0.2.1 lib/lucid/step_definition_light.rb
lucid-0.2.0 lib/lucid/step_definition_light.rb
lucid-0.1.1 lib/lucid/step_definition_light.rb
lucid-0.1.0 lib/lucid/step_definition_light.rb
lucid-0.0.9 lib/lucid/step_definition_light.rb
lucid-0.0.8 lib/lucid/step_definition_light.rb
lucid-0.0.7 lib/lucid/step_definition_light.rb
lucid-0.0.6 lib/lucid/step_definition_light.rb
lucid-0.0.5 lib/lucid/step_definition_light.rb