Sha256: 6c8c4cd1b642c42d5179ee3d90eef73245a577e877009af46fea77a95331e54d

Contents?: true

Size: 387 Bytes

Versions: 3

Compression:

Stored size: 387 Bytes

Contents

# pops the top 3 items of the +:bool+ 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 +:bool+
#
# *pushes:* 3 +:bool+
#

class BoolRotateInstruction < Instruction
  include RotateInstruction
  def initialize(context)
    super(context, :bool)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nudge-0.2.9 lib/instructions/bool/bool_rotate.rb
nudge-0.2.8 lib/instructions/bool/bool_rotate.rb
nudge-0.2.7 lib/instructions/bool/bool_rotate.rb