Class: RR::Expectations::AnyArgumentExpectation

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

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



12
13
14
# File 'lib/rr/expectations/any_argument_expectation.rb', line 12

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

#exact_match?(*arguments) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/rr/expectations/any_argument_expectation.rb', line 4

def exact_match?(*arguments)
  false
end

#wildcard_match?(*arguments) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/rr/expectations/any_argument_expectation.rb', line 8

def wildcard_match?(*arguments)
  true
end