lib/instructions/code/code_points.rb in nudge-0.2.6 vs lib/instructions/code/code_points.rb in nudge-0.2.7
- old
+ new
@@ -1,4 +1,12 @@
+# pops the top +:code+ item;
+# pushes a new +:int+ with the number of program points in the +:code+
+#
+# *needs:* 1 +:code+
+#
+# *pushes:* 1 +:int+
+#
+
class CodePointsInstruction < Instruction
def preconditions?
needs :code, 1
end