class Part

Represents a part in a multipart message.

Definitions

def initialize(headers = {})

Initialize a new part with the given headers.

Signature

parameter headers Hash

The headers for this part.

returns void

Implementation

def initialize(headers = {})
	@headers = headers
end

attr_accessor :headers

The headers associated with this part.

Signature

attribute Hash

The headers as name/value pairs.

def call(writable, boundary = nil)

Writes the part to the writable body.

Signature

parameter writable IO

The writable stream to write the part to.

parameter boundary String

The boundary string used to separate parts.

Implementation

def call(writable, boundary = nil)
end