# encoding: utf-8 if 'мама'.upcase != 'МАМА' 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 end