Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.15 KB

File metadata and controls

50 lines (32 loc) · 1.15 KB

Gorilla Patch

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

Gem Version Build Status codecov Code Climate

Installing

$ gem install gorilla-patch

or with bundler:

# Gemfile
gem 'gorilla-patch'

Using

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!

Using using?!

Yep. It's standart feature. Read more

Testing

$ rake spec