Class: RR::Expectations::WildcardMatchers::Boolean

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

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



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

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

#wildcard_match?(other) ⇒ Boolean

Returns:



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

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