Class: HashMore

Inherits:
Hash
  • Object
show all
Defined in:
lib/sixarm_ruby_hash_more/hash_more.rb

Overview

HashMore is a recursive hash.

Instance Method Summary collapse

Constructor Details

#initializeHashMore

Returns a new instance of HashMore.



8
9
10
# File 'lib/sixarm_ruby_hash_more/hash_more.rb', line 8

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

Instance Method Details

#+(x) ⇒ Object



12
13
14
# File 'lib/sixarm_ruby_hash_more/hash_more.rb', line 12

def +(x)
  x
end