Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
part(params)
public
Add a part to a
multipart message, with the given content-type. The part itself is yielded to
the block so that other properties (charset, body, headers, etc.) can be
set on it.
Show source
def part(params)
params = {:content_type => params} if String === params
part = Part.new(params)
yield part if block_given?
@parts << part
end