Class: FalseClass

Inherits:
Object show all
Defined in:
lib/fOOrth/monkey_patch/false.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#foorth_embedObject

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

  • An embeddable form of this object as a string.



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

def foorth_embed
  'false'
end

#to_foorth_bObject

Convert this object to a fOOrth boolean.



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

def to_foorth_b
  self
end