GuessMethod 0.1.0!

I’ve read around the internet that at RailsConfEurope, Dr. Nic used my baby GuessMethod as an example of fun that can be had with meta-programming. I’m flattered.

But flattery only lasts so long, and before I knew it I remembered that I had been wanting to fix it up a little. So I did.

As such, I’m pleased to announce version 0.1 of my little aggressive spelling corrector for irb.

sudo gem install guessmethod

And live the life!

003:0> Strin.tos
attention: replacing non-existant constant Strin with String for Object
attention: sending to_s instead of tos to String:Class
"String"

This is not for production! And it’s not for Rails either. It kills Rails. Until I figure out how to make GuessMethod not kill Rails, it will kill Rails.

That being said, I use it all the time. My irb sessions are full of pretty messages and corrected typos.

Enjoy!

1 Comment »

  1. Dr Nic said,

    September 23, 2007 @ 10:36 pm

    “It kills Rails” - its funny, I’d never used it within Rails console on a Rails model until I was sitting with DHH showing him the gem. That’ll teach me for demoing something I hadn’t tested beforehand :) Nonetheless, he thought the gem was good fun too :)

RSS feed for comments on this post · TrackBack URI

Leave a Comment