Class: Symbol

Inherits:
Object show all
Defined in:
lib/runtime/mixins.rb

Overview

The Symbol class

Instance Method Summary collapse

Instance Method Details

#+(other) ⇒ Object



411
412
413
# File 'lib/runtime/mixins.rb', line 411

def +(other)
  format(JoinedTemplate, str: self.to_s, other: other.to_s)
end

#camelize(_s = nil) ⇒ Object



431
432
433
# File 'lib/runtime/mixins.rb', line 431

def camelize(_s = nil)
  to_s.camelize
end

#dequoteObject



435
436
437
# File 'lib/runtime/mixins.rb', line 435

def dequote
  to_s.dequote
end

#save(file) ⇒ Object



439
440
441
# File 'lib/runtime/mixins.rb', line 439

def save(file)
  to_s.save file
end

#snake_caseObject



423
424
425
# File 'lib/runtime/mixins.rb', line 423

def snake_case
  to_s.snake_case
end

#titleizeObject



427
428
429
# File 'lib/runtime/mixins.rb', line 427

def titleize
  to_s.titleize
end

#to_nObject



415
416
417
# File 'lib/runtime/mixins.rb', line 415

def to_n
  to_s.to_n
end

#underscore(options = {}) ⇒ Object



419
420
421
# File 'lib/runtime/mixins.rb', line 419

def underscore(options = {})
  to_s.underscore(options)
end