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
- Orly?!
- Fork it ( https://github.com/mrThe/to_nil/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request