Sha256: 5694481c1c7d30e07494c5472b5a6f54d716d128ed1fb903d7b3a098f9ac61c6
Contents?: true
Size: 652 Bytes
Versions: 5
Compression:
Stored size: 652 Bytes
Contents
# frozen_string_literal: true module Cucumber # 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). 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
5 entries across 5 versions & 1 rubygems