Sha256: f575dafbfb79933ae2232587f572956e7ec2c359ab1d3cc77d88703ab5013edd
Contents?: true
Size: 998 Bytes
Versions: 1
Compression:
Stored size: 998 Bytes
Contents
require 'stringio' module Polyfill module V2_3 module Enumerable module Instance module GrepV module Method def grep_v(pattern) output = to_a - grep(pattern) output.map!(&::Proc.new) if block_given? output end end refine ::Array do include Method end refine ::Dir do include Method end refine ::Enumerator do include Method end refine ::Hash do include Method end refine ::IO do include Method end refine ::Range do include Method end refine ::StringIO do include Method end refine ::Struct do include Method end def self.included(base) base.include Method end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polyfill-0.6.0 | lib/polyfill/v2_3/enumerable/instance/grep_v.rb |