Module: Snow::ArrayMarshalSupport::MarshalLoadSupport
- Defined in:
- lib/snow-math/marshal.rb
Instance Method Summary collapse
Instance Method Details
#_load(args) ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/snow-math/marshal.rb', line 34 def _load(args) info = Marshal.load(args) arr = new(info[0]) # if not equal, then either something is corrupt or depth was 0 (1 ... info.length).each { |index| arr.store(index - 1, info[index]) } arr end |