Egocentric Nil [version] [ci]

Creates a block, where nil does not raise NoMethodErrors

egonil do
  nil.some_methods.that[:do].not.exist
end

Further Information

Setup

Add to your Gemfile:

gem 'egonil'

MIT License

Copyright (C) 2010-2016 Jan Lelis https://janlelis.com. Released under the MIT license.