/shrug

¯\_(ツ)_/¯

Primary LanguageRubyMIT LicenseMIT

¯\_(ツ)_/¯

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

  1. Fork it ( https://github.com/nickelser/shrug/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request