Sha256: 474b1eeecbf7593cfbc0ea73424b8a47969a9a914ddc51a50d976b2e570b7fec

Contents?: true

Size: 597 Bytes

Versions: 288

Compression:

Stored size: 597 Bytes

Contents

# frozen_string_literal: true

module SplitIoClient
  #
  # class to implement the all keys matcher
  #
  class Matcher
    def initialize(logger)
      @logger = logger
    end

    #
    # evaluates if the given object equals the matcher
    #
    # @param obj [object] object to be evaluated
    #
    # @return [boolean] true if obj equals the matcher
    def equals?(obj)
      if obj.nil?
        false
      elsif !obj.instance_of?(self.class)
        false
      elsif equal?(obj)
        true
      else
        false
      end
    end

    def string_type?
      false
    end
  end
end

Version data entries

288 entries across 288 versions & 1 rubygems

Version Path
splitclient-rb-7.3.5.pre.rc1-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.5.pre.rc1 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.4-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.4 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.4.pre.rc2-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.4.pre.rc2 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.4.pre.rc1-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.4.pre.rc1 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.3-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.3 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.3.pre.rc18-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.3.pre.rc18 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.3.pre.rc17-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.3.pre.rc17 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.3.pre.rc16-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.3.pre.rc16 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.3.pre.rc15-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.3.pre.rc15 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.3.pre.rc14-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-7.3.3.pre.rc14 lib/splitclient-rb/engine/matchers/matcher.rb