¯\_(ツ)_/¯
A warm comforting blanket around all your objects. Any undefined method on nil will report an exception using robustly.
Installation
Add this line to your application's Gemfile:
gem 'shrug'
And then execute:
$ bundle
Or install it yourself as:
$ gem install shrug
Usage
@some_class_variable_which_due_to_sad_conditions_is_now_nil.something_important.do_the_thing!
¯\_(ツ)_/¯
nil
Contributing
- Fork it ( https://github.com/nickelser/shrug/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