Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/fat_core/symbol.rb

Instance Method Summary collapse

Instance Method Details

#as_symObject

[View source]

10
11
12
# File 'lib/fat_core/symbol.rb', line 10

def as_sym
  self
end

#entitleObject Also known as: to_string

Convert to capitalized string: :hello_world -> “Hello World”

[View source]

3
4
5
6
7
# File 'lib/fat_core/symbol.rb', line 3

def entitle
  to_s.gsub('_', ' ').split(' ')
    .join(' ')
    .entitle
end

#tex_quoteObject

[View source]

14
15
16
# File 'lib/fat_core/symbol.rb', line 14

def tex_quote
  to_s.tex_quote
end