Sha256: 6138b19113f063135cd2f9840ee19c6049466b03a4edd328b4586dfd5935c7ce
Contents?: true
Size: 907 Bytes
Versions: 2
Compression:
Stored size: 907 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
polyfill-0.5.0 | lib/polyfill/v2_4/enumerable/instance/uniq.rb |
polyfill-0.4.0 | lib/polyfill/v2_4/enumerable/instance/uniq.rb |