Class: RR::Expectations::AnyArgumentExpectation
- Inherits:
-
ArgumentEqualityExpectation
- Object
- ArgumentEqualityExpectation
- RR::Expectations::AnyArgumentExpectation
- 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
- #==(other) ⇒ Object
- #exact_match?(arguments, keyword_arguments) ⇒ Boolean
-
#initialize ⇒ AnyArgumentExpectation
constructor
A new instance of AnyArgumentExpectation.
- #wildcard_match?(arguments, keyword_arguments) ⇒ Boolean
Methods inherited from ArgumentEqualityExpectation
Constructor Details
#initialize ⇒ AnyArgumentExpectation
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
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
12 13 14 |
# File 'lib/rr/expectations/any_argument_expectation.rb', line 12 def wildcard_match?(arguments, keyword_arguments) true end |