class Part
Represents a part in a multipart message.
Definitions
def initialize(headers = {})
Initialize a new part with the given headers.
Signature
-
parameter
headersHash 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
writableIO The writable stream to write the part to.
-
parameter
boundaryString The boundary string used to separate parts.
Implementation
def call(writable, boundary = nil)
end