Make idiomatic, update style.

I've written a lot of Ruby since I wrote this.  Apply this fact.