class TrueClass

Extensions to the TrueClass 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/true.rb, line 14
def foorth_embed
  'true'
end
to_foorth_b() click to toggle source

Convert this object to a fOOrth boolean.

# File lib/fOOrth/monkey_patch/true.rb, line 7
def to_foorth_b
  self
end