class XfOOrth::ClassSpec
A class used to specify the compile of fOOrth classes.
Attributes
new_class[R]
Give read access to the class for testing.
Public Instance Methods
build_builds_string(new_class, _symbol)
click to toggle source
Generate the Ruby code for this fOOrth class.
Parameters:
-
new_class - The class object being specified.
-
_symbol - The symbol that the name maps to. Unused
# File lib/fOOrth/compiler/word_specs.rb, line 115 def build_builds_string(new_class, _symbol) @new_class = new_class @builds = "vm.push(#{new_class.name}); " end