class NilClass

Extensions to the NilClass class required by the fOOrth language system.

Public Instance Methods

foorth_embed() click to toggle source

Convert this object to a form suitable for embedding in a source string.
Returns

  • An embeddable form of this object as a string.

# File lib/fOOrth/monkey_patch/nil.rb, line 14
def foorth_embed
  'nil'
end
format_description(_max_width) click to toggle source

Create a bullet point description from nothing.

# File lib/fOOrth/library/formatting/nil.rb, line 7
def format_description(_max_width)
  []
end
to_foorth_b() click to toggle source

Convert this object to a fOOrth boolean.

# File lib/fOOrth/monkey_patch/nil.rb, line 7
def to_foorth_b
  false
end