Class: CodeFlushInstruction
- Inherits:
-
Instruction
- Object
- Instruction
- CodeFlushInstruction
- Includes:
- FlushInstruction
- Defined in:
- lib/instructions/code/code_flush.rb
Overview
deletes all items from the :code
stack
Instance Attribute Summary
Attributes included from FlushInstruction
Attributes inherited from Instruction
Instance Method Summary collapse
-
#initialize(context) ⇒ CodeFlushInstruction
constructor
A new instance of CodeFlushInstruction.
Methods included from FlushInstruction
#cleanup, #derive, #preconditions?, #setup
Methods inherited from Instruction
all_instructions, #cleanup, #derive, #go, inherited, #needs, #preconditions?, #pushes, #setup, to_nudgecode
Constructor Details
#initialize(context) ⇒ CodeFlushInstruction
Returns a new instance of CodeFlushInstruction.
6 7 8 |
# File 'lib/instructions/code/code_flush.rb', line 6 def initialize(context) super(context, :code) end |