Method: Cod::LineSerializer#de

Defined in:
lib/cod/line_serializer.rb

#de(io) ⇒ String

Deserializes a message from the wire.

Parameters:

  • io (IO)

    the wire

Returns:

  • (String)

Raises:

  • (EOFError)


23
24
25
26
27
# File 'lib/cod/line_serializer.rb', line 23

def de(io)
  msg = io.gets
  return msg.chomp if msg
  raise EOFError
end