class XfOOrth::GlobalVarSpec
A class used to specify the compile of fOOrth global variables.
Public Instance Methods
build_builds_string(_name, symbol)
click to toggle source
Generate the Ruby code for this fOOrth variable.
Parameters:
-
_name - The string that maps to the symbol. Unused
-
symbol - The symbol that the name maps to.
# File lib/fOOrth/compiler/word_specs.rb, line 152 def build_builds_string(_name, symbol) @builds = "vm.push(#{'$' + symbol.to_s}); " end