Class: Utils::NameUtils
- Inherits:
-
Object
- Object
- Utils::NameUtils
- Defined in:
- lib/bujo/utils/names.rb
Class Method Summary collapse
Class Method Details
.computerize(name) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/bujo/utils/names.rb', line 5 def self.computerize(name) I18n.config.available_locales = :en I18n.transliterate(name, :locale => :en) .downcase .gsub(/\s+/, "_") .gsub(/'/, "_") end |