Module: Inflector
Instance Method Summary collapse
Instance Method Details
#camelize(str) ⇒ Object
8 9 10 |
# File 'lib/shushu.rb', line 8 def camelize(str) str.to_s.split('_').map {|w| w.capitalize}.join end |
8 9 10 |
# File 'lib/shushu.rb', line 8 def camelize(str) str.to_s.split('_').map {|w| w.capitalize}.join end |