Class: ExecFlushInstruction
- Inherits:
-
Instruction
- Object
- Instruction
- ExecFlushInstruction
- Includes:
- FlushInstruction
- Defined in:
- lib/instructions/exec/exec_flush.rb
Overview
deletes all items from the :exec
stack
note: this is the equivalent of a “BREAK” statement in many other languages
Instance Attribute Summary
Attributes included from FlushInstruction
Attributes inherited from Instruction
Instance Method Summary collapse
-
#initialize(context) ⇒ ExecFlushInstruction
constructor
A new instance of ExecFlushInstruction.
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) ⇒ ExecFlushInstruction
Returns a new instance of ExecFlushInstruction.
8 9 10 |
# File 'lib/instructions/exec/exec_flush.rb', line 8 def initialize(context) super(context, :exec) end |