| Module | TMail::StrategyInterface |
| In: |
actionmailer/lib/action_mailer/vendor/tmail/encode.rb
|
# File actionmailer/lib/action_mailer/vendor/tmail/encode.rb, line 64 def accept_strategy( klass, eol, charset, dest = nil ) dest ||= '' accept klass.new(create_dest(dest), charset, eol) dest end
# File actionmailer/lib/action_mailer/vendor/tmail/encode.rb, line 40 def create_dest( obj ) case obj when nil StringOutput.new when String StringOutput.new(obj) when IO, StringOutput obj else raise TypeError, 'cannot handle this type of object for dest' end end
# File actionmailer/lib/action_mailer/vendor/tmail/encode.rb, line 58 def decoded( eol = "\n", charset = 'e', dest = nil ) accept_strategy Decoder, eol, charset, dest end