Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #coding utf-8
- require "unicode";
- class String
- def downcase
- Unicode::downcase(self)
- end
- def downcase!
- self.replace downcase
- end
- def upcase
- Unicode::upcase(self)
- end
- def upcase!
- self.replace upcase
- end
- def capitalize
- Unicode::capitalize(self)
- end
- def capitalize!
- self.replace capitalize
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement