class String
Public Instance Methods
to_sym_city()
click to toggle source
# File lib/place.rb, line 76 def to_sym_city I18n.config.available_locales = :en begin return_string = I18n.transliterate( self ).tr( " ", "" ).downcase.to_sym return return_string rescue Encoding::CompatibilityError => e return_string = self.encode( "UTF-8", "IBM437", invalid: :replace, undef: :replace ) return_string = I18n.transliterate( return_string ).tr( " ", "" ).downcase.to_sym return return_string end end