Sha256: eb1bca4280fbec427e96b3054ee8bd44cdb25f3bb109b0a279fa800b6c6446b0
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
# MonkeyPatcherPatcher MonkeyPatcherPatcher patches monkey patches on your code, it's your code!!!! (but seriously don't ever use this) ## Installation Add this line to your application's Gemfile: gem 'monkey_patcher_patcher' Or install it yourself as: $ gem install monkey_patcher_patcher ## Usage You want to write poor code and then someone else comes along and has an unexpected need and you don't want it to be met (and/or you don't want to pull in their pull requests) Instead of allowing a monkey patcher to patch your code you can use MonkeyPatcherPatcher Your methods won't change from your definitions!!!!! ```ruby class Hello include MonkeyPatcherPatcher def hello puts "hello" end monkey_patcher_patcher :hello end hello = Hello.new hello.hello # => "hello" # Some monkey patcher comes along and patches your code!!!! class Hello def hello puts "not hello at all" end end hello = Hello.new hello.hello # => "hello" # Huzzah!! we have conquered the patchers (sometimes, maybe, and only if they aren't very good) ``` AGAIN - DON'T USE THIS ## Contributing 1. Fork it 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 new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
monkey_patcher_patcher-0.0.1 | README.md |