Sha256: 78ce7de46545ffd97f344990afca4c5acf0bf9f4ac47a1d9d00298c15bc3495d
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 Bytes
Contents
module Polyfill module V2_3 module Enumerator module Lazy module Instance module GrepV module Method using V2_3::Enumerable::Instance::GrepV def grep_v(pattern) ::Enumerator::Lazy.new(self) do |yielder, element| next if pattern === element # rubocop:disable Style/CaseEquality yielder << (block_given? ? yield(element) : element) end end end refine ::Enumerator::Lazy do include Method end def self.included(base) base.include Method end 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/enumerator/lazy/instance/grep_v.rb |