Permalink
Browse files

Move method up in code (group with similar).

  • Loading branch information...
1 parent 563bd4d commit 64fc88d6a6898850e7ac80b388d935b9e3ac1cb3 @alexreisner committed Mar 14, 2011
Showing with 9 additions and 9 deletions.
  1. +9 −9 lib/handler.rb
View
@@ -47,6 +47,15 @@ def self.transliterate_with_iconv(string)
end
end
+ ##
+ # Transliterate a string using multibyte normalization,
+ # then remove remaining non-ASCII characters. Taken from
+ # <tt>ActiveSupport::Inflector.transliterate</tt>.
+ #
+ def self.transliterate_with_normalization(string)
+ string.mb_chars.normalize.gsub(/[^\x00-\x7F]+/, '').to_s
+ end
+
##
# Generate a handle from a string.
#
@@ -75,15 +84,6 @@ def self.next_handle(handle, separator)
end
end
- ##
- # Transliterate a string using multibyte normalization,
- # then remove remaining non-ASCII characters. Taken from
- # <tt>ActiveSupport::Inflector.transliterate</tt>.
- #
- def self.transliterate_with_normalization(string)
- string.mb_chars.normalize.gsub(/[^\x00-\x7F]+/, '').to_s
- end
-
module ClassMethod
##

0 comments on commit 64fc88d

Please sign in to comment.