Sha256: 36b20894e55bb076d8b39456e0ca73f65779459f97428e0e40b2260d32f262d1

Contents?: true

Size: 252 Bytes

Versions: 3

Compression:

Stored size: 252 Bytes

Contents

# makes and pushes a clone of the top item on the +:code+ stack
#
# *needs:* 1 +:code+
#
# *pushes:* 1 +:code+
#

class CodeDuplicateInstruction < Instruction
  include DuplicateInstruction
  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_duplicate.rb
nudge-0.2.8 lib/instructions/code/code_duplicate.rb
nudge-0.2.7 lib/instructions/code/code_duplicate.rb