lib/instructions/exec/exec_if.rb in nudge-0.2.6 vs lib/instructions/exec/exec_if.rb in nudge-0.2.7
- old
+ new
@@ -1,4 +1,12 @@
+# 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)