Class: Mocktail::Matchers::Any
- Extended by:
- T::Sig
- Defined in:
- lib/mocktail/matchers/any.rb,
lib/mocktail/sorbet/mocktail/matchers/any.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Any
constructor
A new instance of Any.
- #inspect ⇒ Object
- #match?(actual) ⇒ Boolean
Methods inherited from Base
Constructor Details
#initialize ⇒ Any
Returns a new instance of Any.
9 10 11 |
# File 'lib/mocktail/matchers/any.rb', line 9 def initialize # Empty initialize is necessary b/c Base default expects an argument end |
Class Method Details
.matcher_name ⇒ Object
5 6 7 |
# File 'lib/mocktail/matchers/any.rb', line 5 def self.matcher_name :any end |
Instance Method Details
#inspect ⇒ Object
17 18 19 |
# File 'lib/mocktail/matchers/any.rb', line 17 def inspect "any" end |
#match?(actual) ⇒ Boolean
13 14 15 |
# File 'lib/mocktail/matchers/any.rb', line 13 def match?(actual) true end |