Skip to content

Commit

Permalink
Move include to top of class for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
norman committed Jan 5, 2012
1 parent d2455bd commit a8a8dc4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions activesupport/lib/active_support/multibyte/chars.rb
Expand Up @@ -35,6 +35,7 @@ module Multibyte #:nodoc:
# #
# ActiveSupport::Multibyte.proxy_class = CharsForUTF32 # ActiveSupport::Multibyte.proxy_class = CharsForUTF32
class Chars class Chars
include Comparable
attr_reader :wrapped_string attr_reader :wrapped_string
alias to_s wrapped_string alias to_s wrapped_string
alias to_str wrapped_string alias to_str wrapped_string
Expand Down Expand Up @@ -69,8 +70,6 @@ def self.consumes?(string)
string.encoding == Encoding::UTF_8 string.encoding == Encoding::UTF_8
end end


include Comparable

# Works just like <tt>String#split</tt>, with the exception that the items in the resulting list are Chars # 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. # instances instead of String. This makes chaining methods easier.
# #
Expand Down

0 comments on commit a8a8dc4

Please sign in to comment.