lib/instructions/int/int_abs.rb in nudge-0.2.6 vs lib/instructions/int/int_abs.rb in nudge-0.2.7
- old
+ new
@@ -1,5 +1,13 @@
-class IntAbsInstruction < Instruction
+# pops the top item of the +:int+ stack;
+# pushes a ValuePoint with its absolute value onto the +:int+ stack
+#
+# *needs:* 1 +:int+
+#
+# *pushes:* 1 +:int+
+#
+
+class IntAbsInstruction < Instruction
def preconditions?
needs :int, 1
end
def setup
@arg1 = @context.pop_value(:int)