Class Index [+]

Quicksearch

Mail::Encodings::Base64

Constants

NAME
PRIORITY

Public Class Methods

can_encode?(enc) click to toggle source
    # File lib/mail/encodings/base64.rb, line 11
11:       def self.can_encode?(enc)
12:         true
13:       end
cost(str) click to toggle source

Base64 has a fixed cost, 4 bytes out per 3 bytes in

    # File lib/mail/encodings/base64.rb, line 26
26:       def self.cost(str)
27:         4.0/3
28:       end
decode(str) click to toggle source

Decode the string from Base64

    # File lib/mail/encodings/base64.rb, line 16
16:       def self.decode(str)
17:         RubyVer.decode_base64( str )
18:       end
encode(str) click to toggle source

Encode the string to Base64

    # File lib/mail/encodings/base64.rb, line 21
21:       def self.encode(str)
22:         RubyVer.encode_base64( str ).to_crlf
23:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.