Class: Sequent::Core::Helpers::MessageMatchers::IsA
- Inherits:
-
Struct
- Object
- Struct
- Sequent::Core::Helpers::MessageMatchers::IsA
- Includes:
- ExceptOpt
- Defined in:
- lib/sequent/core/helpers/message_matchers/is_a.rb
Instance Attribute Summary collapse
-
#expected_class ⇒ Object
Returns the value of attribute expected_class.
-
#opts ⇒ Object
Returns the value of attribute opts.
Instance Method Summary collapse
Instance Attribute Details
#expected_class ⇒ Object
Returns the value of attribute expected_class
7 8 9 |
# File 'lib/sequent/core/helpers/message_matchers/is_a.rb', line 7 def expected_class @expected_class end |
#opts ⇒ Object
Returns the value of attribute opts
7 8 9 |
# File 'lib/sequent/core/helpers/message_matchers/is_a.rb', line 7 def opts @opts end |
Instance Method Details
#matches_message?(message) ⇒ Boolean
10 11 12 |
# File 'lib/sequent/core/helpers/message_matchers/is_a.rb', line 10 def () .is_a?(expected_class) unless excluded?() end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/sequent/core/helpers/message_matchers/is_a.rb', line 14 def to_s "is_a(#{matcher_arguments})" end |