Class: ExecFlushInstruction

Inherits:
Instruction show all
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

#target_stack

Attributes inherited from Instruction

#context

Instance Method Summary collapse

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