Sha256: 3f2a8f8a8de214caaef7eaeb8d749382848f0842b18cc57959e7d37ec188bf1f

Contents?: true

Size: 90 Bytes

Versions: 5

Compression:

Stored size: 90 Bytes

Contents

class Hash

  def self.infinite
    new { |h, k| h[k] = new(&h.default_proc) }
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
katapult-0.5.0 lib/generators/katapult/basics/templates/lib/ext/hash/infinite.rb
katapult-0.4.1 lib/generators/katapult/basics/templates/lib/ext/hash/infinite.rb
katapult-0.4.0 lib/generators/katapult/basics/templates/lib/ext/hash/infinite.rb
katapult-0.3.0 lib/generators/katapult/basics/templates/lib/ext/hash/infinite.rb
katapult-0.2.0 lib/generators/katapult/basics/templates/lib/ext/hash/infinite.rb