Posts Tagged ‘ruby’

Viewing documentation for your ruby gems

As I get started with ruby, one of the things I’ve noticed is that ruby’s documentation could be a bit better.  However, I discovered that this four line ruby script will give your documentation for your server’s installed gems:

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

Thanks to Daniel for the [...]