Skip to content

WorstOfAny/gorilla-patch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ruby Gem for refine Ruby Core classes.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%