Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/padrino-gen/core_ext/string.rb
Direct Known Subclasses
Instance Method Summary collapse
- #camelize ⇒ Object
- #classify ⇒ Object
- #constantize ⇒ Object
- #pluralize ⇒ Object
- #underscore ⇒ Object
Instance Method Details
#camelize ⇒ Object
15 16 17 |
# File 'lib/padrino-gen/core_ext/string.rb', line 15 def camelize Padrino::Inflections.camelize(TemporaryString.new(to_str)).to_str end |
#classify ⇒ Object
19 20 21 |
# File 'lib/padrino-gen/core_ext/string.rb', line 19 def classify Padrino::Inflections.classify(TemporaryString.new(to_str)).to_str end |
#constantize ⇒ Object
23 24 25 |
# File 'lib/padrino-gen/core_ext/string.rb', line 23 def constantize Padrino::Inflections.constantize(TemporaryString.new(to_str)) end |
#pluralize ⇒ Object
7 8 9 |
# File 'lib/padrino-gen/core_ext/string.rb', line 7 def pluralize Padrino::Inflections.pluralize(TemporaryString.new(to_str)).to_str end |
#underscore ⇒ Object
11 12 13 |
# File 'lib/padrino-gen/core_ext/string.rb', line 11 def underscore Padrino::Inflections.underscore(TemporaryString.new(to_str)).to_str end |