Async::JobSourceAsyncJobCoderMarshal

class Marshal

Represents a coder that uses Ruby's Marshal for job serialization. Marshal provides fast serialization but is Ruby-specific and not suitable for cross-language job processing systems.

Definitions

def dump(job)

Serialize a job object using Ruby's Marshal.

Signature

parameter job Object

The job object to serialize.

returns String

The serialized job data.

Implementation

def dump(job)
	::Marshal.dump(job)
end

def load(data)

Deserialize job data using Ruby's Marshal.

Signature

parameter data String

The serialized job data.

returns Object

The deserialized job object.

Implementation

def load(data)
	::Marshal.load(data)
end

DEFAULT = self.new

Signature

attribute Async::Job::Coder::Marshal

The default Marshal coder instance.