Sha256: b4b7c6bd6cf3f85260e92bfee1e50cdfa9c0875021f70c5a135b7804b0ac7d2a

Contents?: true

Size: 581 Bytes

Versions: 3

Compression:

Stored size: 581 Bytes

Contents

# pops the top item of the +:int+ stack (the "index");
# then repositions an item from down "inside" the +:exec+ stack to its top.
# 
# If the index value is negative or 0, the bottom item on the stack is moved;
# if the index value is greater than or equal to the depth of the stack, there is no change;
# otherwise, the index value refers to the bottom-to-top order of stack items.
#
# *needs:* 1 +:int+, 1 +:exec+
#
# *pushes:* 1 +:exec+ (sortof)
#

class ExecYankInstruction < Instruction
  include YankInstruction
  def initialize(context)
    super(context, :exec)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nudge-0.2.9 lib/instructions/exec/exec_yank.rb
nudge-0.2.8 lib/instructions/exec/exec_yank.rb
nudge-0.2.7 lib/instructions/exec/exec_yank.rb