Class: Sequent::Core::Helpers::MessageMatchers::ArgumentSerializer
- Inherits:
-
Object
- Object
- Sequent::Core::Helpers::MessageMatchers::ArgumentSerializer
- Defined in:
- lib/sequent/core/helpers/message_matchers/argument_serializer.rb
Class Method Summary collapse
Class Method Details
.serialize_value(value) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/sequent/core/helpers/message_matchers/argument_serializer.rb', line 9 def serialize_value(value) return value.to_s if value.respond_to?(:matches_message?) return %("#{value}") if value.is_a?(String) value end |