Class: NamePopInstruction

Inherits:
Instruction show all
Includes:
PopInstruction
Defined in:
lib/instructions/name/name_pop.rb

Overview

pops (and discards) the topmost item from the :name stack

Instance Attribute Summary

Attributes included from PopInstruction

#target_stack

Attributes inherited from Instruction

#context

Instance Method Summary collapse

Methods included from PopInstruction

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

Methods inherited from Instruction

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

Constructor Details

#initialize(context) ⇒ NamePopInstruction

Returns a new instance of NamePopInstruction.



6
7
8
# File 'lib/instructions/name/name_pop.rb', line 6

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