Class: RR::Expectations::WildcardMatchers::Anything

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

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



9
10
11
# File 'lib/rr/expectations/wildcard_matchers/anything.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/anything.rb', line 5

def wildcard_match?(other)
  true
end