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

- (AnyArgumentExpectation) initialize



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

def initialize
  super
end

Instance Method Details

- (Object) ==(other)



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

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

- (Boolean) exact_match?(*arguments)



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

def exact_match?(*arguments)
  false
end

- (Boolean) wildcard_match?(*arguments)



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

def wildcard_match?(*arguments)
  true
end