diff options
author | Norman Clarke <norman@njclarke.com> | 2012-01-05 17:15:36 -0300 |
---|---|---|
committer | Norman Clarke <norman@njclarke.com> | 2012-01-05 17:15:36 -0300 |
commit | a8a8dc4a691577c2d029be92c32f593d0fd7db75 (patch) | |
tree | a5c4220f62a77f251703508e7ad52f6b4f0c5d66 | |
parent | d2455bd8a56eeb41c346d8a0b49f4ba7475f2471 (diff) | |
download | rails-a8a8dc4a691577c2d029be92c32f593d0fd7db75.tar.gz rails-a8a8dc4a691577c2d029be92c32f593d0fd7db75.tar.bz2 rails-a8a8dc4a691577c2d029be92c32f593d0fd7db75.zip |
Move include to top of class for clarity
-rw-r--r-- | activesupport/lib/active_support/multibyte/chars.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/multibyte/chars.rb b/activesupport/lib/active_support/multibyte/chars.rb index c0796320b2..b85c5e8bd1 100644 --- a/activesupport/lib/active_support/multibyte/chars.rb +++ b/activesupport/lib/active_support/multibyte/chars.rb @@ -35,6 +35,7 @@ module ActiveSupport #:nodoc: # # ActiveSupport::Multibyte.proxy_class = CharsForUTF32 class Chars + include Comparable attr_reader :wrapped_string alias to_s wrapped_string alias to_str wrapped_string @@ -69,8 +70,6 @@ module ActiveSupport #:nodoc: string.encoding == Encoding::UTF_8 end - include Comparable - # Works just like <tt>String#split</tt>, with the exception that the items in the resulting list are Chars # instances instead of String. This makes chaining methods easier. # |