Class: Symbol

Inherits:
Object
  • Object
show all
Extended by:
FatCore::Symbol::ClassMethods
Includes:
FatCore::Symbol
Defined in:
lib/fat_core/symbol.rb

Instance Method Summary collapse

Instance Method Details

#as_stringString Also known as: entitle Originally defined in module FatCore::Symbol

Convert to a title-ized string, that is, convert all '_' to a space, then call String#entitle on the result.

Examples:

:hello_world.entitle #=> "Hello World"
:hello_world.as_string #=> "Hello World"
:joy_to_the_world #=> 'Joy to the World'

Returns:

#as_symSymbol Originally defined in module FatCore::Symbol

Return self. This (together with String#as_sym) allows #as_sym to be applied to a string or Symbol and get back a Symbol with out testing for type.

Returns:

#tex_quoteString Originally defined in module FatCore::Symbol

Prepare this symbol for use in a TeX document by converting to String then quoting it.

Examples:

:hammer_smith.tex_quote  #=> "hammer\\_smith"

Returns: