class String
Public Instance Methods
camelize(first_letter = :upper)
click to toggle source
# File lib/garb/core_ext/string.rb, line 4 def camelize(first_letter = :upper) case first_letter when :upper then Garb::Inflector.camelize(self, true) when :lower then Garb::Inflector.camelize(self, false) end end
Also aliased as: camelcase
demodulize()
click to toggle source
# File lib/garb/core_ext/string.rb, line 16 def demodulize Garb::Inflector.demodulize(self) end
underscore()
click to toggle source
# File lib/garb/core_ext/string.rb, line 12 def underscore Garb::Inflector.underscore(self) end