Sha256: 9c6fa76fb2f9940ccd2616550d39c50abfb686b9ea01ba709acfd6ad6fc1187e
Contents?: true
Size: 597 Bytes
Versions: 3
Compression:
Stored size: 597 Bytes
Contents
# pops the top item of the +:int+ stack (the "index"); # pushes a duplicate of an item from down "inside" the +:name+ stack to 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. # # *needs:* 1 +:int+, 1 +:name+ # # *pushes:* 1 +:name+ (sortof) # class NameYankdupInstruction < Instruction include YankdupInstruction def initialize(context) super(context, :name) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nudge-0.2.9 | lib/instructions/name/name_yankdup.rb |
nudge-0.2.8 | lib/instructions/name/name_yankdup.rb |
nudge-0.2.7 | lib/instructions/name/name_yankdup.rb |