Module: Inflector::CoreExtensions::String
- Defined in:
- lib/inflector/core_ext/string.rb
Instance Method Summary collapse
- #camelize ⇒ Object
- #constantize ⇒ Object
- #pascalize ⇒ Object
- #pluralize ⇒ Object
- #singularize ⇒ Object
- #uncapitalize ⇒ Object
- #underscore ⇒ Object
Instance Method Details
#camelize ⇒ Object
12 13 14 |
# File 'lib/inflector/core_ext/string.rb', line 12 def camelize Inflector.camelize(self) end |
#constantize ⇒ Object
24 25 26 |
# File 'lib/inflector/core_ext/string.rb', line 24 def constantize Inflector.constantize(self) end |
#pascalize ⇒ Object
20 21 22 |
# File 'lib/inflector/core_ext/string.rb', line 20 def pascalize Inflector.pascalize(self) end |
#pluralize ⇒ Object
4 5 6 |
# File 'lib/inflector/core_ext/string.rb', line 4 def pluralize Inflector.pluralize(self) end |
#singularize ⇒ Object
8 9 10 |
# File 'lib/inflector/core_ext/string.rb', line 8 def singularize Inflector.singularize(self) end |
#uncapitalize ⇒ Object
28 29 30 |
# File 'lib/inflector/core_ext/string.rb', line 28 def uncapitalize Inflector.uncapitalize(self) end |
#underscore ⇒ Object
16 17 18 |
# File 'lib/inflector/core_ext/string.rb', line 16 def underscore Inflector.underscore(self) end |