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]

8
9
10
# File 'lib/fat_core/symbol.rb', line 8

def as_sym
  self
end

#entitleObject Also known as: to_string

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

[View source]

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

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

#tex_quoteObject

[View source]

12
13
14
# File 'lib/fat_core/symbol.rb', line 12

def tex_quote
  to_s.tex_quote
end