Class: XfOOrth::VmSpec
- Inherits:
-
AbstractWordSpec
- Object
- AbstractWordSpec
- XfOOrth::VmSpec
- Defined in:
- lib/fOOrth/compiler/word_specs.rb
Overview
A class used to specify the compile of VM words.
Instance Attribute Summary
Attributes inherited from AbstractWordSpec
Instance Method Summary collapse
-
#build_builds_string(_name, symbol) ⇒ Object
Generate the Ruby code for this method.
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 method.
Parameters:
-
_name - The string that maps to the symbol. Unused
-
symbol - The symbol that the name maps to.
56 57 58 |
# File 'lib/fOOrth/compiler/word_specs.rb', line 56 def build_builds_string(_name, symbol) @builds = "vm.#{symbol}(vm); " end |