Skip to main content
  1. Posts/

Viewing documentation for your ruby gems

·46 words·1 min·

I stumbled into this four line ruby script that will serve up all of the rdoc documentation for your server’s currently installed gems:

#!/usr/bin/env ruby
require "rubygems/server"
options = {:gemdir => Gem.dir, :port => 4242, :daemon => true}
Gem::Server::run(options)

Thanks to Daniel for the ruby code!