I've just started investigating ruby & ruby-on-rails. As these examples may seem trivial and novice like, I'm just a beginner. ;-)
Timeserver with optparse
TimeServer Daemonize