Sha256: 1ec37f39eeb5e01455899f2d4aa46b572f0b0f699f5031e527ba1291139ec580
Contents?: true
Size: 652 Bytes
Versions: 3
Compression:
Stored size: 652 Bytes
Contents
# pops the top item of the +:int+ stack (the "index"); # pushes a duplicate of an item from down "inside" the +:int+ stack at its top. # # If the index value is negative or 0, the bottom item on the stack is copied; # if the index value is greater than or equal to the depth of the stack, the top item is copied; # otherwise, the index value refers to the bottom-to-top order of stack items. # # note: the destination depth is calculated after the index has been popped # # *needs:* 2 +:int+ # # *pushes:* 1 +:int+ # class IntYankdupInstruction < Instruction include YankdupInstruction def initialize(context) super(context, :int) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nudge-0.2.9 | lib/instructions/int/int_yankdup.rb |
nudge-0.2.8 | lib/instructions/int/int_yankdup.rb |
nudge-0.2.7 | lib/instructions/int/int_yankdup.rb |