Method: Hydra::Message#serialize
- Defined in:
- lib/hydra/message.rb
#serialize(opts = {}) ⇒ Object
Serialize the message for output on an IO channel. This is really just a string representation of a hash with no newlines. It adds in the class automatically
38 39 40 |
# File 'lib/hydra/message.rb', line 38 def serialize(opts = {}) opts.merge({:class => self.class}).inspect end |