Class TMail::MimeEncodeAuto
In: lib/tmail/net.rb
Parent: Object

Methods

exec   new  

Attributes

multipart_composer  [R] 
singlepart_composer  [R] 

Public Class methods

[Source]

# File lib/tmail/net.rb, line 186
    def initialize( s = nil, m = nil )
      @singlepart_composer = s || MimeEncodeSingle.new
      @multipart_composer  = m || MimeEncodeMulti.new
    end

Public Instance methods

[Source]

# File lib/tmail/net.rb, line 194
    def exec( mail )
      if mail._builtin_multipart?
      then @multipart_composer
      else @singlepart_composer end.exec mail
    end

[Validate]