Class: XfOOrth::LocalSpec
- Inherits:
-
AbstractWordSpec
- Object
- AbstractWordSpec
- XfOOrth::LocalSpec
- Defined in:
- lib/fOOrth/compiler/word_specs.rb
Overview
A class used to specify the compile of fOOrth variable.
Instance Attribute Summary
Attributes inherited from AbstractWordSpec
Instance Method Summary collapse
-
#build_builds_string(_name, symbol) ⇒ Object
Generate the Ruby code for this fOOrth variable.
Methods inherited from AbstractWordSpec
#get_stub_action, #has_tag?, #initialize
Constructor Details
This class inherits a constructor from XfOOrth::AbstractWordSpec
Instance Method Details
#build_builds_string(_name, symbol) ⇒ Object
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.
160 161 162 |
# File 'lib/fOOrth/compiler/word_specs.rb', line 160 def build_builds_string(_name, symbol) @builds = "vm.context[#{symbol.inspect}].does.call(vm); " end |