Class: NilClass

Inherits:
Object show all
Defined in:
lib/fOOrth/monkey_patch/nil.rb,
lib/fOOrth/library/formatting/nil.rb

Overview

  • library/formatting/nil.rb - Support for displaying nothing formatted neatly.

Instance Method Summary collapse

Instance Method Details

#foorth_embedObject


Returns

  • An embeddable form of this object as a string.



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

def foorth_embed
  'nil'
end

#format_description(_max_width) ⇒ Object

Create a bullet point description from nothing.



7
8
9
# File 'lib/fOOrth/library/formatting/nil.rb', line 7

def format_description(_max_width)
  []
end

#to_foorth_bObject

Convert this object to a fOOrth boolean.



7
8
9
# File 'lib/fOOrth/monkey_patch/nil.rb', line 7

def to_foorth_b
  false
end