Class: XfOOrth::LocalSpec

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

#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 fOOrth variable.
Parameters:

  • _name - The string that maps to the symbol. Unused

  • symbol - The symbol that the name maps to.



163
164
165
# File 'lib/fOOrth/compiler/word_specs.rb', line 163

def build_builds_string(_name, symbol)
  @builds = "instance_exec(vm, &vm.context[#{symbol.inspect}].does); "
end