Sha256: 3a0e68a5fd586bd36326ce1971886d5abb2d481c0d5bfea20593db5091cff31d
Contents?: true
Size: 147 Bytes
Versions: 4
Compression:
Stored size: 147 Bytes
Contents
class Array def to_hash h = HashWithIndifferentAccess.new self.each do |element| h.update(element => nil) end h end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
axtro-roart-0.1.8 | lib/roart/core/array.rb |
roart-0.1.8 | lib/roart/core/array.rb |
roart-0.1.7 | lib/roart/core/array.rb |
roart-0.1.6 | lib/roart/core/array.rb |