Module: FatCore::NilClass
- Included in:
- NilClass
- Defined in:
- lib/fat_core/nil.rb
Instance Method Summary collapse
-
#as_string ⇒ String
(also: #entitle)
Allow nils to respond to #as_string like String and Symbol.
-
#commas(_places = nil) ⇒ String
Allow nils to respond to #commas like String and Numeric.
-
#tex_quote ⇒ String
Allow nils to respond to #tex_quote for use in TeX documents.
Instance Method Details
#as_string ⇒ String Also known as: entitle
Allow nils to respond to #as_string like String and Symbol
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
21 22 23 |
# File 'lib/fat_core/nil.rb', line 21 def commas(_places = nil) '' end |
#tex_quote ⇒ String
Allow nils to respond to #tex_quote for use in TeX documents
14 15 16 |
# File 'lib/fat_core/nil.rb', line 14 def tex_quote '' end |