Methods
Public Instance methods
[ show source ]
# File lib/action_mailer/vendor/tmail/encode.rb, line 64
64: def accept_strategy( klass, eol, charset, dest = nil )
65: dest ||= ''
66: accept klass.new(create_dest(dest), charset, eol)
67: dest
68: end
[ show source ]
# File lib/action_mailer/vendor/tmail/encode.rb, line 40
40: def create_dest( obj )
41: case obj
42: when nil
43: StringOutput.new
44: when String
45: StringOutput.new(obj)
46: when IO, StringOutput
47: obj
48: else
49: raise TypeError, 'cannot handle this type of object for dest'
50: end
51: end
This method is also aliased as
to_s
[ show source ]
# File lib/action_mailer/vendor/tmail/encode.rb, line 58
58: def decoded( eol = "\n", charset = 'e', dest = nil )
59: accept_strategy Decoder, eol, charset, dest
60: end
[ show source ]
# File lib/action_mailer/vendor/tmail/encode.rb, line 54
54: def encoded( eol = "\r\n", charset = 'j', dest = nil )
55: accept_strategy Encoder, eol, charset, dest
56: end
Alias for decoded