The generator is available as a gem from GitHub. If you haven't already, you'll first need to add GitHub as a gem source:
$ gem sources -a http://gems.github.com
Then you just install the gem:
$ gem install jeffreyhunter77-R2Doc
See the docs for usage examples and compatibility with different versions of RDoc.
Code is available at the R2Doc GitHub project.