Method: XDR::Concerns::ConvertsToXDR#read

Defined in:
lib/xdr/concerns/converts_to_xdr.rb

#read(io) ⇒ Object

Reads from the provided IO an instance of the implementing class

Parameters:

  • io (IO)

    the io to read from

Returns:

  • (Object)

    the deserialized value

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/xdr/concerns/converts_to_xdr.rb', line 21

def read(io)
  raise NotImplementedError, "implement in including class"
end