lib/instructions/int/int_min.rb in nudge-0.2.6 vs lib/instructions/int/int_min.rb in nudge-0.2.7
- old
+ new
@@ -1,4 +1,12 @@
+# pops the top 2 items of the +:int+ stack;
+# pushes a new ValuePoint onto the +:int+ stack with the smallest of the two values
+#
+# *needs:* 2 +:int+
+#
+# *pushes:* 1 +:int+
+#
+
class IntMinInstruction < Instruction
def preconditions?
needs :int, 2
end
def setup