Module: Inflector

Extended by:
Inflector
Included in:
Inflector
Defined in:
lib/shushu.rb

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