Class: BoolFlushInstruction

Inherits:
Instruction show all
Includes:
FlushInstruction
Defined in:
lib/instructions/bool/bool_flush.rb

Overview

deletes all items from the :bool stack

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) ⇒ BoolFlushInstruction

Returns a new instance of BoolFlushInstruction.



6
7
8
# File 'lib/instructions/bool/bool_flush.rb', line 6

def initialize(context)
  super(context, :bool)
end