Class: ExecDepthInstruction
- Inherits:
-
Instruction
- Object
- Instruction
- ExecDepthInstruction
- Includes:
- DepthInstruction
- Defined in:
- lib/instructions/exec/exec_depth.rb
Overview
pushes a ValuePoint with the number of items in the :exec
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) ⇒ ExecDepthInstruction
constructor
A new instance of ExecDepthInstruction.
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) ⇒ ExecDepthInstruction
Returns a new instance of ExecDepthInstruction.
8 9 10 |
# File 'lib/instructions/exec/exec_depth.rb', line 8 def initialize(context) super(context, :exec) end |