Sha256: 1072bd6527c09fa57a02d0cc3f6c4450c9da63fd37cfcc580a76126b91b172a4

Contents?: true

Size: 336 Bytes

Versions: 3

Compression:

Stored size: 336 Bytes

Contents

# pops the top 2 items of the +:exec+ stack, and one +:bool+;
# returns the top +:exec+ item if the +:bool+ is +false+, the second one if +true+
#
# *needs:* 2 +:exec+, 1 +:bool+
#
# *pushes:* 1 +:exec+
#

class ExecIfInstruction < Instruction
  
  include IfInstruction
  
  def initialize(context)
    super(context, :exec)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nudge-0.2.9 lib/instructions/exec/exec_if.rb
nudge-0.2.8 lib/instructions/exec/exec_if.rb
nudge-0.2.7 lib/instructions/exec/exec_if.rb