instance method
part
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
part(params)
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.
Parameters
-
paramsreq
Source
# File actionmailer/lib/action_mailer/part_container.rb, line 25
def part(params)
params = {:content_type => params} if String === params
part = Part.new(params)
yield part if block_given?
@parts << part
end
Defined in actionmailer/lib/action_mailer/part_container.rb line 25
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionMailer::PartContainer