Class: Lookout::Reception::Arguments::List

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

Overview

Arguments matcher matching a list of arguments. It uses Difference to do the actual work.

Direct Known Subclasses

None

Instance Method Summary collapse

Instance Method Details

#=~(other) ⇒ Object

Returns True if there are no differences between the expected arguments and OTHER.

Parameters:

Returns:

  • True if there are no differences between the expected arguments and OTHER



13
# File 'lib/lookout-3.0/reception/arguments/list.rb', line 13

def =~(other) not args.to_lookout_expected.difference(other) end

#to_sObject

Returns The receiver as a String argument list.

Returns:

  • The receiver as a String argument list



16
# File 'lib/lookout-3.0/reception/arguments/list.rb', line 16

def to_s; Lookout::Inspect.args(*args) end