class String

Public Instance Methods

camelize() click to toggle source
# File lib/padrino-gen/core_ext/string.rb, line 15
def camelize
  Padrino::Inflections.camelize(TemporaryString.new(to_str)).to_str
end
classify() click to toggle source
# File lib/padrino-gen/core_ext/string.rb, line 19
def classify
  Padrino::Inflections.classify(TemporaryString.new(to_str)).to_str
end
constantize() click to toggle source
# File lib/padrino-gen/core_ext/string.rb, line 23
def constantize
  Padrino::Inflections.constantize(TemporaryString.new(to_str))
end
pluralize() click to toggle source
# File lib/padrino-gen/core_ext/string.rb, line 7
def pluralize
  Padrino::Inflections.pluralize(TemporaryString.new(to_str)).to_str
end
underscore() click to toggle source
# File lib/padrino-gen/core_ext/string.rb, line 11
def underscore
  Padrino::Inflections.underscore(TemporaryString.new(to_str)).to_str
end