Gorilla Patch

Ruby Gem for refine Ruby Core classes (like Monkey patch)

Gem Version Build Status codecov Code Climate

Installation

“sh $ gem install gorilla_patch

or with bundler:

“by

Gemfile

gem ‘gorilla_patch’

Usage

“by 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!

What is using?

It’s standard feature.

Testing

“ rake spec