Class: Lookout::Reception::Arguments::Any

Inherits:
Object
  • Object
show all
Defined in:
lib/lookout-3.0/reception/arguments/any.rb

Overview

Arguments matcher matching any arguments.

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object Also known as: eql?

Returns True if the receiver’s class ‘#==` that of OTHER.

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

Parameters:

Returns:

  • (true)


7
# File 'lib/lookout-3.0/reception/arguments/any.rb', line 7

def =~(other) true end

#hashObject



12
# File 'lib/lookout-3.0/reception/arguments/any.rb', line 12

def hash; self.class.hash end

#to_sObject

Returns The receiver as a String argument list.

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