Module: Marshal

Defined in:
opal/opal/corelib/marshal/read_buffer.rb,
opal/opal/corelib/marshal.rb,
opal/opal/corelib/marshal/write_buffer.rb

Overview

Defined Under Namespace

Classes: ReadBuffer, WriteBuffer

Constant Summary

MAJOR_VERSION =
4
MINOR_VERSION =
8

Class Method Summary collapse

Class Method Details

.dump(object) ⇒ Object



9
10
11
# File 'opal/opal/corelib/marshal.rb', line 9

def dump(object)
  WriteBuffer.new(object).write
end

.load(marshaled) ⇒ Object Also known as: restore



13
14
15
# File 'opal/opal/corelib/marshal.rb', line 13

def load(marshaled)
  ReadBuffer.new(marshaled).read
end