Class: RR::Expectations::AnyArgumentExpectation

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

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from ArgumentEqualityExpectation

#expected_arguments, #expected_keyword_arguments

Instance Method Summary collapse

Methods inherited from ArgumentEqualityExpectation

recursive_safe_eq

Constructor Details

#initializeAnyArgumentExpectation

Returns a new instance of AnyArgumentExpectation.



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

def initialize
  super([], {})
end

Instance Method Details

#==(other) ⇒ Object



16
17
18
# File 'lib/rr/expectations/any_argument_expectation.rb', line 16

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

#exact_match?(arguments, keyword_arguments) ⇒ Boolean

Returns:

  • (Boolean)


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

def exact_match?(arguments, keyword_arguments)
  false
end

#wildcard_match?(arguments, keyword_arguments) ⇒ Boolean

Returns:

  • (Boolean)


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

def wildcard_match?(arguments, keyword_arguments)
  true
end