Class: ExecDuplicateInstruction
- Inherits:
-
Instruction
- Object
- Instruction
- ExecDuplicateInstruction
- Includes:
- DuplicateInstruction
- Defined in:
- lib/instructions/exec/exec_duplicate.rb
Overview
makes and pushes a clone of the top item on the :exec
stack
needs: 1 :exec
pushes: 1 :exec
Instance Attribute Summary
Attributes included from DuplicateInstruction
Attributes inherited from Instruction
Instance Method Summary collapse
-
#initialize(context) ⇒ ExecDuplicateInstruction
constructor
A new instance of ExecDuplicateInstruction.
Methods included from DuplicateInstruction
#cleanup, #derive, #preconditions?, #setup
Methods inherited from Instruction
all_instructions, #cleanup, #derive, #go, inherited, #needs, #preconditions?, #pushes, #setup, to_nudgecode
Constructor Details
#initialize(context) ⇒ ExecDuplicateInstruction
Returns a new instance of ExecDuplicateInstruction.
10 11 12 |
# File 'lib/instructions/exec/exec_duplicate.rb', line 10 def initialize(context) super(context, :exec) end |