to_nil gem
Switch branches/tags
Nothing to show
Clone or download


Cast everything to nil!


Add this line to your application's Gemfile:

gem 'mr_to_nil'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mr_to_nil


[:random, :array].to_nil # nil
31337.to_nil # nil
"Yet another shitty gem".to_nil # nil
"Your fat boss".to_nil # nil
nil.to_nil # nil


  1. Orly?!
  2. Fork it ( )
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request