class String
Public Instance Methods
camelize(first_letter = :upper)
click to toggle source
# File lib/support/string.rb, line 3 def camelize(first_letter = :upper) case first_letter when :upper then ActiveSupport::Inflector.camelize(self, true) when :lower then ActiveSupport::Inflector.camelize(self, false) end end
Also aliased as: camelcase
constantize()
click to toggle source
# File lib/support/string.rb, line 14 def constantize ActiveSupport::Inflector.constantize(self) end
demodulize()
click to toggle source
# File lib/support/string.rb, line 22 def demodulize ActiveSupport::Inflector.demodulize(self) end
underscore()
click to toggle source
# File lib/support/string.rb, line 18 def underscore ActiveSupport::Inflector.underscore(self) end