Permalink
Browse files

Move include to top of class for clarity

  • Loading branch information...
1 parent d2455bd commit a8a8dc4a691577c2d029be92c32f593d0fd7db75 @norman norman committed Jan 5, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 activesupport/lib/active_support/multibyte/chars.rb
@@ -35,6 +35,7 @@ module Multibyte #: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 @@ def self.consumes?(string)
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.
#

0 comments on commit a8a8dc4

Please sign in to comment.