Class: Symbol

Inherits:
Object
  • Object
show all
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

Instance Method Details

#camelizeObject

See Also:

  • String#camelize


211
212
213
# File 'lib/parse/model/model.rb', line 211

def camelize
  to_s.camelize
end

#columnizeString

Returns a lower-first-camelcased version of the symbol.

Returns:

  • (String)

    a lower-first-camelcased version of the symbol

See Also:



201
202
203
# File 'lib/parse/model/model.rb', line 201

def columnize
  to_s.columnize.to_sym
end

#singularizeObject

See Also:

  • String#singularize


206
207
208
# File 'lib/parse/model/model.rb', line 206

def singularize
  to_s.singularize
end

#to_parse_class(singularize: false) ⇒ Object



216
217
218
# File 'lib/parse/model/model.rb', line 216

def to_parse_class(singularize: false)
  to_s.to_parse_class(singularize: singularize)
end