Ruby Gem for refine Ruby Core classes (like Monkey patch)
$ gem install gorilla-patchor with bundler:
# Gemfile
gem 'gorilla-patch'require 'gorilla-patch' # or 'gorilla-patch/keys' for specific functionallity
hash = { a: 1, b: 2 }
hash.keys? :a, :b # undefined method!
module Foo
using GorillaPatch::Keys
hash.keys? :a, :b # true
end
hash.keys? :a, :b # undefined method!Yep. It's standart feature. Read more
$ rake spec