Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/parse/model/model.rb,
lib/parse/query/ordering.rb
Overview
Extension to add all the operator instance methods to the Symbol classe
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
340 341 342 |
# File 'lib/parse/model/model.rb', line 340 def camelize to_s.camelize end |
#columnize ⇒ String
Returns a lower-first-camelcased version of the symbol.
330 331 332 |
# File 'lib/parse/model/model.rb', line 330 def columnize to_s.columnize.to_sym end |
#singularize ⇒ Object
335 336 337 |
# File 'lib/parse/model/model.rb', line 335 def singularize to_s.singularize end |
#to_parse_class(singularize: false) ⇒ Object
345 346 347 |
# File 'lib/parse/model/model.rb', line 345 def to_parse_class(singularize: false) to_s.to_parse_class(singularize: singularize) end |