class RR::WildcardMatchers::Boolean
Public Instance Methods
==(other)
click to toggle source
# File lib/rr/wildcard_matchers/boolean.rb, line 8 def ==(other) other.is_a?(self.class) end
Also aliased as: eql?
inspect()
click to toggle source
# File lib/rr/wildcard_matchers/boolean.rb, line 13 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 || is_a_boolean?(other) end
Protected Instance Methods
is_a_boolean?(subject)
click to toggle source
# File lib/rr/wildcard_matchers/boolean.rb, line 18 def is_a_boolean?(subject) subject.is_a?(TrueClass) || subject.is_a?(FalseClass) end