lib/instructions/exec/exec_equal_q.rb in nudge-0.2.6 vs lib/instructions/exec/exec_equal_q.rb in nudge-0.2.7
- old
+ new
@@ -1,4 +1,13 @@
+# pops the top 2 items of the +:exec+ stack;
+# pushes a new ValuePoint onto the +:bool+ stack, with value +true+ if the
+# two items' blueprint strings are identical
+#
+# *needs:* 2 +:exec+
+#
+# *pushes:* 1 +:bool+
+#
+
class ExecEqualQInstruction < Instruction
def preconditions?
needs :exec, 2
end
def setup