class DocomoWebMailer::Mimepart
メールの一つのmimeパート
Attributes
attache_info[R]
attache を得るためのキー
body[R]
メール本文(HTML化されている)
inline_head[R]
用途不明。ヘッダが [ [“content-type”, “text/plain”] ] のような形で入るようだ
spec[R]
Public Class Methods
new( specs, inline )
click to toggle source
# File lib/docomo_web_mailer.rb, line 351 def initialize( specs, inline ) @spec, @attache_info = specs @inline_head, @body = inline if inline end
Public Instance Methods
content_type_more(part)
click to toggle source
より正しい content-type を得る( inline_head
に content-type があればそちらを持ってくる )
# File lib/docomo_web_mailer.rb, line 360 def content_type_more(part) for n,v in inline_head return v if n == 'content-type' end if inline_head return @spec.content_type end
method_missing(sym, *args, &block)
click to toggle source
spec に委譲
# File lib/docomo_web_mailer.rb, line 356 def method_missing(sym, *args, &block) @spec.send sym, *args, &block end