lib/instructions/code/code_parses_q.rb in nudge-0.2.6 vs lib/instructions/code/code_parses_q.rb in nudge-0.2.7
- old
+ new
@@ -1,4 +1,12 @@
+# pops the top +:code+ item;
+# pushes a new +:bool+ with value +true+ if the +:code+ can be parsed
+#
+# *needs:* 1 +:code+
+#
+# *pushes:* 1 +:bool+
+#
+
class CodeParsesQInstruction < Instruction
def preconditions?
needs :code, 1
end
def setup