Module: TMail::Base64
- Defined in:
- lib/action_mailer/vendor/tmail/base64.rb
Class Method Summary collapse
- .rb_decode(str, strict = false) ⇒ Object
- .rb_encode(str) ⇒ Object
- .rb_folding_encode(str, eol = "\n", limit = 60) ⇒ Object
Class Method Details
.rb_decode(str, strict = false) ⇒ Object
44 45 46 |
# File 'lib/action_mailer/vendor/tmail/base64.rb', line 44 def rb_decode( str, strict = false ) str.unpack('m') end |
.rb_encode(str) ⇒ Object
40 41 42 |
# File 'lib/action_mailer/vendor/tmail/base64.rb', line 40 def rb_encode( str ) [str].pack('m').tr( "\r\n", '' ) end |
.rb_folding_encode(str, eol = "\n", limit = 60) ⇒ Object
36 37 38 |
# File 'lib/action_mailer/vendor/tmail/base64.rb', line 36 def rb_folding_encode( str, eol = "\n", limit = 60 ) [str].pack('m') end |