Class: Lookout::Reception::Arguments::Any
- Defined in:
- lib/lookout-3.0/reception/arguments/any.rb
Overview
Arguments matcher matching any arguments.
Instance Method Summary collapse
-
#==(other) ⇒ Object
(also: #eql?)
True if the receiver’s class ‘#==` that of OTHER.
- #=~(other) ⇒ true
- #hash ⇒ Object
-
#to_s ⇒ Object
The receiver as a String argument list.
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
Returns True if the receiver’s class ‘#==` that of OTHER.
10 |
# File 'lib/lookout-3.0/reception/arguments/any.rb', line 10 def ==(other) self.class == other.class end |
#=~(other) ⇒ true
7 |
# File 'lib/lookout-3.0/reception/arguments/any.rb', line 7 def =~(other) true end |
#hash ⇒ Object
12 |
# File 'lib/lookout-3.0/reception/arguments/any.rb', line 12 def hash; self.class.hash end |
#to_s ⇒ Object
Returns The receiver as a String argument list.
15 |
# File 'lib/lookout-3.0/reception/arguments/any.rb', line 15 def to_s; '*args, &block' end |