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

Instance Method Summary collapse

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) ⇒ Boolean

Returns:

  • (Boolean)


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

def exact_match?(*arguments)
  false
end

#wildcard_match?(*arguments) ⇒ Boolean

Returns:

  • (Boolean)


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

def wildcard_match?(*arguments)
  true
end