Class: HashOfHash
- Inherits:
-
DefaultInitHash
- Object
- Hash
- DefaultInitHash
- HashOfHash
- Defined in:
- lib/graphr/directed_graph.rb
Instance Method Summary collapse
-
#initialize(&initBlock) ⇒ HashOfHash
constructor
A new instance of HashOfHash.
Methods inherited from DefaultInitHash
Constructor Details
#initialize(&initBlock) ⇒ HashOfHash
Returns a new instance of HashOfHash.
2 3 4 5 6 7 8 9 10 |
# File 'lib/graphr/directed_graph.rb', line 2 def initialize(&initBlock) super do if initBlock DefaultInitHash.new(&initBlock) else Hash.new end end end |