Class: Sequent::Core::Helpers::MessageMatchers::Any

Inherits:
Struct
  • Object
show all
Includes:
ExceptOpt
Defined in:
lib/sequent/core/helpers/message_matchers/any.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optsObject

Returns the value of attribute opts

Returns:

  • (Object)

    the current value of opts



7
8
9
# File 'lib/sequent/core/helpers/message_matchers/any.rb', line 7

def opts
  @opts
end

Instance Method Details

#matches_message?(message) ⇒ Boolean

Returns:



10
11
12
13
14
# File 'lib/sequent/core/helpers/message_matchers/any.rb', line 10

def matches_message?(message)
  return false if excluded?(message)

  true
end

#to_sObject



16
17
18
# File 'lib/sequent/core/helpers/message_matchers/any.rb', line 16

def to_s
  "any#{matcher_arguments}"
end