Sha256: 40db674acb3dfe21272ce7598615eec9d7fa2ab3fcbdf2d7b5a4f02dfc33c69a
Contents?: true
Size: 930 Bytes
Versions: 1
Compression:
Stored size: 930 Bytes
Contents
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polyfill-0.4.0 | lib/polyfill/v2_4/enumerable/instance/chunk.rb |