Class: XfOOrth::VmSpec

Inherits:
AbstractWordSpec show all
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

#builds, #does, #tags

Instance Method Summary collapse

Methods inherited from AbstractWordSpec

#get_info, #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.



59
60
61
# File 'lib/fOOrth/compiler/word_specs.rb', line 59

def build_builds_string(_name, symbol)
  @builds = "vm.#{symbol}(vm); "
end