Class: IntDepthInstruction

Inherits:
Instruction show all
Includes:
DepthInstruction
Defined in:
lib/instructions/int/int_depth.rb

Overview

pushes a ValuePoint with the number of items in the :int stack onto the :int stack

pushes: 1 :int

Instance Attribute Summary

Attributes included from DepthInstruction

#target_stack

Attributes inherited from Instruction

#context

Instance Method Summary collapse

Methods included from DepthInstruction

#cleanup, #derive, #preconditions?, #setup

Methods inherited from Instruction

all_instructions, #cleanup, #derive, #go, inherited, #needs, #preconditions?, #pushes, #setup, to_nudgecode

Constructor Details

#initialize(context) ⇒ IntDepthInstruction

Returns a new instance of IntDepthInstruction.



8
9
10
# File 'lib/instructions/int/int_depth.rb', line 8

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