Class: Object

Inherits:
BasicObject
Defined in:
lib/robot-army/marshal_ext.rb

Instance Method Summary collapse

Instance Method Details

#marshalable?Boolean

Syntactic sugar for Marshal.can_dump?.

Returns:

  • (Boolean)

See Also:



30
31
32
33
34
35
# File 'lib/robot-army/marshal_ext.rb', line 30

def marshalable?
  Marshal.can_dump?(self) &&
  instance_variables.all? do |ivar|
    instance_variable_get(ivar).marshalable?
  end
end