Class: FloatDefineInstruction
- Inherits:
-
Instruction
- Object
- Instruction
- FloatDefineInstruction
- Includes:
- DefineInstruction
- Defined in:
- lib/instructions/float/float_define.rb
Overview
pops the top item of the :float
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 the :float
ValuePoint
needs: 1 :float
, 1 :name
pushes: nothing
Instance Attribute Summary
Attributes included from DefineInstruction
Attributes inherited from Instruction
Instance Method Summary collapse
-
#initialize(context) ⇒ FloatDefineInstruction
constructor
A new instance of FloatDefineInstruction.
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) ⇒ FloatDefineInstruction
Returns a new instance of FloatDefineInstruction.
12 13 14 |
# File 'lib/instructions/float/float_define.rb', line 12 def initialize(context) super(context, :float) end |