Module: Snow::BaseMarshalSupport

Included in:
Mat3, Mat4, Quat, Vec2, Vec3, Vec4
Defined in:
lib/snow-math/marshal.rb

Overview

:nodoc: all

Defined Under Namespace

Modules: MarshalLoadSupport

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



20
21
22
# File 'lib/snow-math/marshal.rb', line 20

def self.included(base)
  base.extend(MarshalLoadSupport)
end

Instance Method Details

#_dump(level) ⇒ Object



9
10
11
12
# File 'lib/snow-math/marshal.rb', line 9

def _dump(level)
  # level ignored because it's not applicable
  Marshal.dump(self.to_a)
end