Class: SplitIoClient::Matcher

Inherits:
Object
  • Object
show all
Defined in:
lib/splitclient-rb/engine/matchers/matcher.rb

Overview

class to implement the all keys matcher

Instance Method Summary collapse

Instance Method Details

#equals?(obj) ⇒ boolean

evaluates if the given object equals the matcher

Parameters:

  • obj (object) —

    object to be evaluated

Returns:

  • (boolean) —

    true if obj equals the matcher



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/splitclient-rb/engine/matchers/matcher.rb', line 14

def equals?(obj)
  if obj.nil?
    false
  elsif !obj.instance_of?(self.class)
    false
  elsif equal?(obj)
    true
  else
    false
  end
end

#string_type? ⇒ Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/splitclient-rb/engine/matchers/matcher.rb', line 26

def string_type?
  false
end