Class: NameDepthInstruction
- Inherits:
-
Instruction
- Object
- Instruction
- NameDepthInstruction
- Includes:
- DepthInstruction
- Defined in:
- lib/instructions/name/name_depth.rb
Overview
pushes a ValuePoint with the number of items in the :name
stack onto the :int
stack
pushes: 1 :int
Instance Attribute Summary
Attributes included from DepthInstruction
Attributes inherited from Instruction
Instance Method Summary collapse
-
#initialize(context) ⇒ NameDepthInstruction
constructor
A new instance of NameDepthInstruction.
Methods included from DepthInstruction
#cleanup, #derive, #preconditions?, #setup
Methods inherited from Instruction
all_instructions, #cleanup, #derive, #go, inherited, #needs, #preconditions?, #pushes, #setup, to_nudgecode
Constructor Details
#initialize(context) ⇒ NameDepthInstruction
Returns a new instance of NameDepthInstruction.
8 9 10 |
# File 'lib/instructions/name/name_depth.rb', line 8 def initialize(context) super(context, :name) end |