Class: Symbol

Inherits:
Object
  • Object
show all
Includes:
Parse::Operation::SymbolMethods, Parse::Order::SymbolMethods
Defined in:
lib/parse/model/model.rb

Overview

Add extensions to the Symbol class.

Instance Method Summary collapse

Instance Method Details

#camelize ⇒ Object

See Also:

  • String#camelize


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.

Returns:

  • (String) —

    a lower-first-camelcased version of the symbol

See Also:



481
482
483
# File 'lib/parse/model/model.rb', line 481

def columnize
  to_s.columnize.to_sym
end

#singularize ⇒ Object

See Also:

  • String#singularize


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