module Mail::Multibyte - mail-2.5.4 Documentation

# module Mail::Multibyte

### Private Class Methods

proxy_class() click to toggle source

Returns the current proxy class

    # File lib/mail/multibyte.rb, line 18
    def self.proxy_class
      @proxy_class ||= Mail::Multibyte::Chars
    end

proxy_class=(klass) click to toggle source

The proxy class returned when calling mb_chars. You can use this accessor to configure your own proxy class so you can support other encodings. See the Mail::Multibyte::Chars implementation for an example how to do this.

Example:

    Mail::Multibyte.proxy_class = CharsForUTF32

    # File lib/mail/multibyte.rb, line 13
    def self.proxy_class=(klass)
      @proxy_class = klass
    end