rubyworks / qed

Quality Ensured Documentation

Home Page:http://rubyworks.github.com/qed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comment Run Mode

trans opened this issue · comments

Another cool feature would be able to ruby Ruby script thru QED and have it treat comments as a demonstration.

This is now supported as of v2.3.0. Simply use the -c option and select Ruby files instead of the usual markup files.

A helpful trick for this is to double comment anything that should not be run by qed. e.g.

foo

This is useful when you comment out experimental code or temporary code, etc., or are commenting in-line and don't want QED to display the comment (in verbose mode).