Sha256: 98abdcbb1a4705929c3b546d78b51ca90cb2611a9db6ad6c680e20c03a293dcc

Contents?: true

Size: 185 Bytes

Versions: 3

Compression:

Stored size: 185 Bytes

Contents

# -*- coding: utf-8 -*-
=begin rdoc
HashMore is a recursive hash.
=end

class HashMore < Hash

  def initialize
    super{|h,k| h[k] = HashMore.new }
  end

  def +(x)
    x
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sixarm_ruby_hash_more-2.0.0 lib/sixarm_ruby_hash_more/hash_more.rb
sixarm_ruby_hash_more-1.3.3 lib/sixarm_ruby_hash_more/hash_more.rb
sixarm_ruby_hash_more-1.3.2 lib/sixarm_ruby_hash_more/hash_more.rb