Class: ExecDefineInstruction
- Inherits:
-
Instruction
- Object
- Instruction
- ExecDefineInstruction
- Includes:
- DefineInstruction
- Defined in:
- lib/instructions/exec/exec_define.rb
Overview
pops the top item of the :exec
stack and the :name
stack; if the name string is not a bound variable (as opposed to a local name), it binds the name to a new ValuePoint with type :code
and value derived from the :exec
item.
needs: 1 :exec
, 1 :name
pushes: nothing
Instance Attribute Summary
Attributes included from DefineInstruction
Attributes inherited from Instruction
Instance Method Summary collapse
-
#initialize(context) ⇒ ExecDefineInstruction
constructor
A new instance of ExecDefineInstruction.
Methods included from DefineInstruction
#cleanup, #derive, #preconditions?, #setup
Methods inherited from Instruction
all_instructions, #cleanup, #derive, #go, inherited, #needs, #preconditions?, #pushes, #setup, to_nudgecode
Constructor Details
#initialize(context) ⇒ ExecDefineInstruction
Returns a new instance of ExecDefineInstruction.
12 13 14 |
# File 'lib/instructions/exec/exec_define.rb', line 12 def initialize(context) super(context, :exec) end |