Sha256: ab747bea554c944d12a7028000f82f225f9117486a49c4e9190f3e86d42ad630

Contents?: true

Size: 633 Bytes

Versions: 6

Compression:

Stored size: 633 Bytes

Contents

module CoreExt #:nodoc:
  module Multibyte
    require 'core_ext/multibyte/chars'
    require 'core_ext/multibyte/unicode'

    # 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 CoreExt::Multibyte::Chars implementation for an example how to
    # do this.
    #
    #   CoreExt::Multibyte.proxy_class = CharsForUTF32
    def self.proxy_class=(klass)
      @proxy_class = klass
    end

    # Returns the current proxy class.
    def self.proxy_class
      @proxy_class ||= CoreExt::Multibyte::Chars
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
core_ext-0.0.6 lib/core_ext/multibyte.rb
core_ext-0.0.5 lib/core_ext/multibyte.rb
core_ext-0.0.4 lib/core_ext/multibyte.rb
core_ext-0.0.3 lib/core_ext/multibyte.rb
core_ext-0.0.2 lib/core_ext/multibyte.rb
core_ext-0.0.1 lib/core_ext/multibyte.rb