Class: SplitIoClient::Matcher
- Inherits:
-
Object
- Object
- SplitIoClient::Matcher
- Defined in:
- lib/splitclient-rb/engine/matchers/matcher.rb
Overview
class to implement the all keys matcher
Direct Known Subclasses
AllKeysMatcher, BetweenMatcher, CombiningMatcher, EqualToMatcher, GreaterThanOrEqualToMatcher, LessThanOrEqualToMatcher, NegationMatcher, UserDefinedSegmentMatcher, WhitelistMatcher
Instance Method Summary collapse
-
#equals?(obj) ⇒ boolean
evaluates if the given object equals the matcher.
- #string_type? ⇒ Boolean
Instance Method Details
#equals?(obj) ⇒ boolean
evaluates if the given object 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
26 27 28 |
# File 'lib/splitclient-rb/engine/matchers/matcher.rb', line 26 def string_type? false end |