Sha256: 33d28b17b27f6d6f7657f181238ddac08f073549cc1d12e9b1750cd85ea94fe1

Contents?: true

Size: 136 Bytes

Versions: 37

Compression:

Stored size: 136 Bytes

Contents

class Array

  def to_h
    {}.tap do |hash|
      each do |e|
        k, v = yield(e)
        hash[k] = v
      end
    end
  end

end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
artfully_ose-1.3.0.pre4 config/initializers/array.rb
artfully_ose-1.3.0.pre3 config/initializers/array.rb
artfully_ose-1.3.0.pre2 config/initializers/array.rb
artfully_ose-1.3.0.pre1 config/initializers/array.rb
artfully_ose-1.2.0 config/initializers/array.rb
artfully_ose-1.2.0.beta.1 config/initializers/array.rb
artfully_ose-1.2.0.alpha.2 config/initializers/array.rb
artfully_ose-1.2.0.alpha.1 config/initializers/array.rb
artfully_ose-1.2.0.pre.27 config/initializers/array.rb
artfully_ose-1.2.0.pre.26 config/initializers/array.rb
artfully_ose-1.2.0.pre.24 config/initializers/array.rb
artfully_ose-1.2.0.pre.23 config/initializers/array.rb
artfully_ose-1.2.0.pre.21 config/initializers/array.rb
artfully_ose-1.2.0.pre.20 config/initializers/array.rb
artfully_ose-1.2.0.pre.19 config/initializers/array.rb
artfully_ose-1.2.0.pre.18 config/initializers/array.rb
artfully_ose-1.2.0.pre.17 config/initializers/array.rb
artfully_ose-1.2.0.pre.16 config/initializers/array.rb
artfully_ose-1.2.0.pre.15 config/initializers/array.rb
artfully_ose-1.2.0.pre.12 config/initializers/array.rb