Class: XfOOrth::SelfSpec
- Inherits:
-
AbstractWordSpec
- Object
- AbstractWordSpec
- XfOOrth::SelfSpec
- Defined in:
- lib/fOOrth/compiler/word_specs.rb
Overview
A class used to specify the compile of private methods of a class or object.
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.
78 79 80 |
# File 'lib/fOOrth/compiler/word_specs.rb', line 78 def build_builds_string(_name, symbol) @builds = "self.#{symbol}(vm); " end |