lib/instructions/exec/exec_rotate.rb in nudge-0.2.6 vs lib/instructions/exec/exec_rotate.rb in nudge-0.2.7

- old
+ new

@@ -1,4 +1,15 @@ +# pops the top 3 items of the +:exec+ stack; +# pushes them back in _rotated_ order +# +# If they were A, B and C (with C originally at the top of the stack) +# the result will be B, C, A (with A at the top) +# +# *needs:* 3 +:exec+ +# +# *pushes:* 3 +:exec+ +# + class ExecRotateInstruction < Instruction include RotateInstruction def initialize(context) super(context, :exec) end