Class: XfOOrth::InstanceVarSpec
- Inherits:
-
AbstractWordSpec
- Object
- AbstractWordSpec
- XfOOrth::InstanceVarSpec
- Defined in:
- lib/fOOrth/compiler/word_specs.rb
Overview
A class used to specify the compile of fOOrth instances variables.
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.
127 128 129 |
# File 'lib/fOOrth/compiler/word_specs.rb', line 127 def build_builds_string(_name, symbol) @builds = "vm.push(#{'@'+(symbol.to_s)}); " end |