Advertisement
Guest User

Untitled

a guest
Sep 1st, 2011
1,666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.37 KB | None | 0 0
  1. #coding utf-8
  2. require "unicode";
  3. class String
  4.    def downcase
  5.      Unicode::downcase(self)
  6.    end
  7.    def downcase!
  8.      self.replace downcase
  9.    end
  10.    def upcase
  11.      Unicode::upcase(self)
  12.    end
  13.    def upcase!
  14.      self.replace upcase
  15.    end
  16.    def capitalize
  17.      Unicode::capitalize(self)
  18.    end
  19.    def capitalize!
  20.      self.replace capitalize
  21.    end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement