Module: CLValueBytesParsers::CLUnitBytesParser

Extended by:
CLUnitBytesParser
Included in:
CLUnitBytesParser
Defined in:
lib/serialization/cl_value_bytes_parsers.rb

Instance Method Summary collapse

Instance Method Details

#from_bytes(byte_array) ⇒ Object



213
214
215
216
217
218
219
# File 'lib/serialization/cl_value_bytes_parsers.rb', line 213

def from_bytes(byte_array)
  if byte_array.empty?
    [].pack("")
  else
    "byte_array should be empty!"
  end
end

#to_bytesObject



221
222
223
# File 'lib/serialization/cl_value_bytes_parsers.rb', line 221

def to_bytes
  "".bytes
end