Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/parse/model/model.rb
Overview
Add extensions to the Symbol class.
Instance Method Summary collapse
- #camelize ⇒ Object
-
#columnize ⇒ String
A lower-first-camelcased version of the symbol.
- #singularize ⇒ Object
- #to_parse_class(singularize: false) ⇒ Object
Instance Method Details
#camelize ⇒ Object
491 492 493 |
# File 'lib/parse/model/model.rb', line 491 def camelize to_s.camelize end |
#columnize ⇒ String
Returns a lower-first-camelcased version of the symbol.
481 482 483 |
# File 'lib/parse/model/model.rb', line 481 def columnize to_s.columnize.to_sym end |
#singularize ⇒ Object
486 487 488 |
# File 'lib/parse/model/model.rb', line 486 def singularize to_s.singularize end |
#to_parse_class(singularize: false) ⇒ Object
496 497 498 |
# File 'lib/parse/model/model.rb', line 496 def to_parse_class(singularize: false) to_s.to_parse_class(singularize: singularize) end |