Sha256: 8ac55142706eb1413d2e52efc22ad3558ce47608666f691d4afc2517675bb5ac
Contents?: true
Size: 387 Bytes
Versions: 3
Compression:
Stored size: 387 Bytes
Contents
# pops the top 3 items of the +:name+ 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 +:name+ # # *pushes:* 3 +:name+ # class NameRotateInstruction < Instruction include RotateInstruction 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_rotate.rb |
nudge-0.2.8 | lib/instructions/name/name_rotate.rb |
nudge-0.2.7 | lib/instructions/name/name_rotate.rb |