Class: HashMore
- Inherits:
-
Hash
- Object
- Hash
- HashMore
- Defined in:
- lib/sixarm_ruby_hash_more/hash_more.rb
Overview
HashMore is a recursive hash.
Instance Method Summary collapse
- #+(x) ⇒ Object
-
#initialize ⇒ HashMore
constructor
A new instance of HashMore.
Constructor Details
#initialize ⇒ HashMore
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 |