class RR::WildcardMatchers::Boolean

Public Instance Methods

==(other) click to toggle source
# File lib/rr/wildcard_matchers/boolean.rb, line 9
def ==(other)
  other.is_a?(self.class)
end
Also aliased as: eql?
eql?(other)
Alias for: ==
inspect() click to toggle source
# File lib/rr/wildcard_matchers/boolean.rb, line 14
def inspect
  'boolean'
end
wildcard_match?(other) click to toggle source
# File lib/rr/wildcard_matchers/boolean.rb, line 4
def wildcard_match?(other)
  self == other ||
  other.equal?(true) || other.equal?(false)
end