Class: Symbol

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

Overview

The Symbol class

Instance Method Summary collapse

Instance Method Details

#+(other) ⇒ Object



412
413
414
# File 'lib/story_teller/mixins.rb', line 412

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

#camelize(_s = nil) ⇒ Object



432
433
434
# File 'lib/story_teller/mixins.rb', line 432

def camelize(_s = nil)
  to_s.camelize
end

#dequoteObject



436
437
438
# File 'lib/story_teller/mixins.rb', line 436

def dequote
  to_s.dequote
end

#save(file) ⇒ Object



440
441
442
# File 'lib/story_teller/mixins.rb', line 440

def save(file)
  to_s.save file
end

#snake_caseObject



424
425
426
# File 'lib/story_teller/mixins.rb', line 424

def snake_case
  to_s.snake_case
end

#titleizeObject



428
429
430
# File 'lib/story_teller/mixins.rb', line 428

def titleize
  to_s.titleize
end

#to_nObject



416
417
418
# File 'lib/story_teller/mixins.rb', line 416

def to_n
  to_s.to_n
end

#underscore(options = {}) ⇒ Object



420
421
422
# File 'lib/story_teller/mixins.rb', line 420

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