Class: TMail::MimeEncodeAuto
- Inherits:
-
Object
- Object
- TMail::MimeEncodeAuto
- Defined in:
- lib/action_mailer/vendor/tmail/net.rb
Instance Attribute Summary collapse
-
#multipart_composer ⇒ Object
readonly
Returns the value of attribute multipart_composer.
-
#singlepart_composer ⇒ Object
readonly
Returns the value of attribute singlepart_composer.
Instance Method Summary collapse
- #exec(mail) ⇒ Object
-
#initialize(s = nil, m = nil) ⇒ MimeEncodeAuto
constructor
A new instance of MimeEncodeAuto.
Constructor Details
#initialize(s = nil, m = nil) ⇒ MimeEncodeAuto
Returns a new instance of MimeEncodeAuto.
219 220 221 222 |
# File 'lib/action_mailer/vendor/tmail/net.rb', line 219 def initialize( s = nil, m = nil ) @singlepart_composer = s || MimeEncodeSingle.new @multipart_composer = m || MimeEncodeMulti.new end |
Instance Attribute Details
#multipart_composer ⇒ Object (readonly)
Returns the value of attribute multipart_composer.
225 226 227 |
# File 'lib/action_mailer/vendor/tmail/net.rb', line 225 def multipart_composer @multipart_composer end |
#singlepart_composer ⇒ Object (readonly)
Returns the value of attribute singlepart_composer.
224 225 226 |
# File 'lib/action_mailer/vendor/tmail/net.rb', line 224 def singlepart_composer @singlepart_composer end |
Instance Method Details
#exec(mail) ⇒ Object
227 228 229 230 231 |
# File 'lib/action_mailer/vendor/tmail/net.rb', line 227 def exec( mail ) if mail._builtin_multipart? then @multipart_composer else @singlepart_composer end.exec mail end |