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?



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

#hashObject



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

def hash; self.class.hash end

#to_sObject



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

def to_s; '*args, &block' end