Module: TMail::Base64

Defined in:
lib/action_mailer/vendor/tmail/base64.rb

Class Method Summary collapse

Class Method Details

.rb_decode(str, strict = false) ⇒ Object



25
26
27
# File 'lib/action_mailer/vendor/tmail/base64.rb', line 25

def rb_decode( str, strict = false )
  str.unpack('m')
end

.rb_encode(str) ⇒ Object



21
22
23
# File 'lib/action_mailer/vendor/tmail/base64.rb', line 21

def rb_encode( str )
  [str].pack('m').tr( "\r\n", '' )
end

.rb_folding_encode(str, eol = "\n", limit = 60) ⇒ Object



17
18
19
# File 'lib/action_mailer/vendor/tmail/base64.rb', line 17

def rb_folding_encode( str, eol = "\n", limit = 60 )
  [str].pack('m')
end