Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/fat_core/symbol.rb
Instance Method Summary collapse
- #as_sym ⇒ Object
-
#entitle ⇒ Object
(also: #to_string)
Convert to capitalized string: :hello_world -> “Hello World”.
- #tex_quote ⇒ Object
Instance Method Details
permalink #as_sym ⇒ Object
[View source]
10 11 12 |
# File 'lib/fat_core/symbol.rb', line 10 def as_sym self end |
permalink #entitle ⇒ Object Also known as: to_string
Convert to capitalized string: :hello_world -> “Hello World”
3 4 5 6 7 |
# File 'lib/fat_core/symbol.rb', line 3 def entitle to_s.gsub('_', ' ').split(' ') .join(' ') .entitle end |
permalink #tex_quote ⇒ Object
[View source]
14 15 16 |
# File 'lib/fat_core/symbol.rb', line 14 def tex_quote to_s.tex_quote end |