Sha256: d71b58be1b47bde1aee7d83e35311918ef86af4a3c912631b0c3dd54a67b63c5
Contents?: true
Size: 387 Bytes
Versions: 3
Compression:
Stored size: 387 Bytes
Contents
# pops the top 3 items of the +:code+ 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 +:code+ # # *pushes:* 3 +:code+ # class CodeRotateInstruction < Instruction include RotateInstruction def initialize(context) super(context, :code) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nudge-0.2.9 | lib/instructions/code/code_rotate.rb |
nudge-0.2.8 | lib/instructions/code/code_rotate.rb |
nudge-0.2.7 | lib/instructions/code/code_rotate.rb |