# iain.nl  

Chainable.not.gem

Written on

Well then: happy holidays! This x-mas, there have been a few nice Ruby presents, like the merging of Rails with Merb and Github has a shiny new feature for creating project sites.

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.

An example:

# 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!

Update

I moved the gem to gemcutter. If you haven't tumbled yet, please do so, before installing my gem:

gem install gemcutter
gem tumble