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