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-8.3.2.pre.rc2-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.2.pre.rc2 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.2.pre.rc1-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.2.pre.rc1 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.1-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.1 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.1.pre.rc1-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.1.pre.rc1 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.0-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.0 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.0.pre.rc3-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.0.pre.rc3 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.0.pre.rc2-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.0.pre.rc2 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.0.pre.rc1-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.3.0.pre.rc1 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.2.0-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.2.0 lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.1.3.pre.rc4-java lib/splitclient-rb/engine/matchers/matcher.rb
splitclient-rb-8.1.3.pre.rc4 lib/splitclient-rb/engine/matchers/matcher.rb