This article is quite old.Time flies when you're having fun. I've been writing for my blog for a long time. Stuff changes fast, especially in the Ruby world. That's why I've put this warning on old posts. The article might still be valid, though.
I too will present you a Ruby x-mas present. It's a nice, but useless present, not totally out of line with the usual x-mas presents.
It is a gem called not. With not you can get rid of exclamation marks and the not keyword, and putting it later on in the sentence, thus making it better English.
# for core Ruby methods: @foo.not.nil? # or any custom method: @user.not.active? @user.not.save!
If you want it, you can install it as a gem:
sudo gem install not
or as a Rails plugin:
./script/plugin install git://github.com/iain/not.git
I hope you'll like it! Happy holidays!
I moved the gem to gemcutter. If you haven't tumbled yet, please do so, before installing my gem:
gem install gemcutter gem tumble