Class: TMail::Encoder

Class | TMail::Encoder
In: | lib/action_mailer/vendor/tmail-1.1.0/tmail/encode.rb
Parent: | Object

FIXME: This class can handle only (euc-jp/shift_jis -> iso-2022-jp).

### Methods

dest encode encode_value header_body header_line header_name kv_pair lwsp meta new normalize_encoding phrase preserve_quotes preserve_quotes= puts reset space spc terminate text write

### Included Modules

TextUtils

### Constants

BENCODE_DEBUG | = | false unless defined?(BENCODE_DEBUG)
SPACER | = | "\t"
MAX_LINE_LEN | = | 70
OPTIONS | = | { 'EUC' => '-Ej -m0', 'SJIS' => '-Sj -m0', 'UTF8' => nil, # FIXME 'NONE' => nil
METHOD_ID | = | { ?j => :extract_J, ?e => :extract_E, ?a => :extract_A, ?s => :extract_S

### Public Class methods

encode( str )
new( dest = nil, encoding = nil, eol = "\r\n", limit = nil )

### Public Instance methods

dest()
encode_value( str )
header_body( str )
header_line( line )

add

header_name( name )
kv_pair( k, v )

FIXME: implement line folding

lwsp( str )
meta( str )
normalize_encoding( str )
phrase( str )
preserve_quotes()
preserve_quotes=( bool )
puts( str = nil )
reset()
space()
spc()

Alias for space

terminate()
text( str )
write( str )

[Validate]