Class: RR::WildcardMatchers::Boolean

Inherits:
Object
  • Object
show all
Defined in:
lib/rr/wildcard_matchers/boolean.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) ==(other) Also known as: eql?



8
9
10
# File 'lib/rr/wildcard_matchers/boolean.rb', line 8

def ==(other)
  other.is_a?(self.class)
end

- (Object) inspect



13
14
15
# File 'lib/rr/wildcard_matchers/boolean.rb', line 13

def inspect
  'boolean'
end

- (Boolean) wildcard_match?(other)



4
5
6
# File 'lib/rr/wildcard_matchers/boolean.rb', line 4

def wildcard_match?(other)
  self == other || is_a_boolean?(other)
end