diff options
Diffstat (limited to 'activesupport/lib/active_support/multibyte')
4 files changed, 6 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/multibyte/chars.rb b/activesupport/lib/active_support/multibyte/chars.rb index a9795de523..374adc7849 100644 --- a/activesupport/lib/active_support/multibyte/chars.rb +++ b/activesupport/lib/active_support/multibyte/chars.rb @@ -2,7 +2,7 @@ require 'active_support/multibyte/handlers/utf8_handler' require 'active_support/multibyte/handlers/passthru_handler' # Encapsulates all the functionality related to the Chars proxy. -module ActiveSupport::Multibyte +module ActiveSupport::Multibyte #:nodoc: # Chars enables you to work transparently with multibyte encodings in the Ruby String class without having extensive # knowledge about the encoding. A Chars object accepts a string upon initialization and proxies String methods in an # encoding safe manner. All the normal String methods are also implemented on the proxy. diff --git a/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb b/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb index b28e345585..916215c2ce 100644 --- a/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb +++ b/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb @@ -1,6 +1,6 @@ # Chars uses this handler when $KCODE is not set to 'UTF8'. Because this handler doesn't define any methods all call # will be forwarded to String. -class ActiveSupport::Multibyte::Handlers::PassthruHandler +class ActiveSupport::Multibyte::Handlers::PassthruHandler #:nodoc: # Return the original byteoffset def self.translate_offset(string, byte_offset) #:nodoc: diff --git a/activesupport/lib/active_support/multibyte/handlers/utf8_handler.rb b/activesupport/lib/active_support/multibyte/handlers/utf8_handler.rb index 0d13cebf5c..009950d33e 100644 --- a/activesupport/lib/active_support/multibyte/handlers/utf8_handler.rb +++ b/activesupport/lib/active_support/multibyte/handlers/utf8_handler.rb @@ -1,6 +1,7 @@ # Contains all the handlers and helper classes -module ActiveSupport::Multibyte::Handlers - class EncodingError < ArgumentError; end +module ActiveSupport::Multibyte::Handlers #:nodoc: + class EncodingError < ArgumentError #:nodoc: + end class Codepoint #:nodoc: attr_accessor :code, :combining_class, :decomp_type, :decomp_mapping, :uppercase_mapping, :lowercase_mapping diff --git a/activesupport/lib/active_support/multibyte/handlers/utf8_handler_proc.rb b/activesupport/lib/active_support/multibyte/handlers/utf8_handler_proc.rb index f551af6cc7..f10eecc622 100644 --- a/activesupport/lib/active_support/multibyte/handlers/utf8_handler_proc.rb +++ b/activesupport/lib/active_support/multibyte/handlers/utf8_handler_proc.rb @@ -1,8 +1,7 @@ # Methods in this handler call functions in the utf8proc ruby extension. These are significantly faster than the # pure ruby versions. Chars automatically uses this handler when it can load the utf8proc extension. For # documentation on handler methods see UTF8Handler. -class ActiveSupport::Multibyte::Handlers::UTF8HandlerProc < ActiveSupport::Multibyte::Handlers::UTF8Handler - +class ActiveSupport::Multibyte::Handlers::UTF8HandlerProc < ActiveSupport::Multibyte::Handlers::UTF8Handler #:nodoc: class << self def normalize(str, form=ActiveSupport::Multibyte::DEFAULT_NORMALIZATION_FORM) #:nodoc: codepoints = str.unpack('U*') |