Sha256: 0cfac64e0197d33694d573a81d193680389928bb1511d4745d368b318072b18b
Contents?: true
Size: 950 Bytes
Versions: 2
Compression:
Stored size: 950 Bytes
Contents
require 'stringio' module Polyfill module V2_4 module Enumerable module Instance module Chunk module Method def chunk(*) return enum_for(:chunk) unless block_given? super 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
polyfill-0.6.0 | lib/polyfill/v2_4/enumerable/instance/chunk.rb |
polyfill-0.5.0 | lib/polyfill/v2_4/enumerable/instance/chunk.rb |