Sha256: d7df492e257144d3f32dd63d421d791010c6df759c54885c22cd15af04d8c17f
Contents?: true
Size: 909 Bytes
Versions: 1
Compression:
Stored size: 909 Bytes
Contents
module Polyfill module V2_4 module Enumerable module Instance module Uniq module Method def uniq if block_given? to_a.uniq(&::Proc.new) else to_a.uniq end end 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_4/enumerable/instance/uniq.rb |