Module: FatCore::NilClass

Included in:
NilClass
Defined in:
lib/fat_core/nil.rb

Instance Method Summary collapse

Instance Method Details

#as_stringString Also known as: entitle

Allow nils to respond to #as_string like String and Symbol

Returns:


6
7
8
# File 'lib/fat_core/nil.rb', line 6

def as_string
  ''
end

#commas(_places = nil) ⇒ String

Allow nils to respond to #commas like String and Numeric

Returns:


21
22
23
# File 'lib/fat_core/nil.rb', line 21

def commas(_places = nil)
  ''
end

#tex_quoteString

Allow nils to respond to #tex_quote for use in TeX documents

Returns:


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

def tex_quote
  ''
end