module Petrovich::Unicode

Custom downcase and upcase methods for russian language.

Constants

RU_LOWER
RU_UPPER

Public Class Methods

downcase(entry) click to toggle source
# File lib/petrovich/unicode.rb, line 20
def self.downcase(entry)
  entry.to_s.tr(RU_UPPER, RU_LOWER)
end
upcase(entry) click to toggle source
# File lib/petrovich/unicode.rb, line 24
def self.upcase(entry)
  entry.to_s.tr(RU_LOWER, RU_UPPER)
end