Module: Inflector::CoreExtensions::String

Defined in:
lib/inflector/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#camelizeObject



12
13
14
# File 'lib/inflector/core_ext/string.rb', line 12

def camelize
  Inflector.camelize(self)
end

#constantizeObject



24
25
26
# File 'lib/inflector/core_ext/string.rb', line 24

def constantize
  Inflector.constantize(self)
end

#pascalizeObject



20
21
22
# File 'lib/inflector/core_ext/string.rb', line 20

def pascalize
  Inflector.pascalize(self)
end

#pluralizeObject



4
5
6
# File 'lib/inflector/core_ext/string.rb', line 4

def pluralize
  Inflector.pluralize(self)
end

#singularizeObject



8
9
10
# File 'lib/inflector/core_ext/string.rb', line 8

def singularize
  Inflector.singularize(self)
end

#uncapitalizeObject



28
29
30
# File 'lib/inflector/core_ext/string.rb', line 28

def uncapitalize
  Inflector.uncapitalize(self)
end

#underscoreObject



16
17
18
# File 'lib/inflector/core_ext/string.rb', line 16

def underscore
  Inflector.underscore(self)
end