Class: HashOfHash

Inherits:
DefaultInitHash show all
Defined in:
lib/graphr/directed_graph.rb

Instance Method Summary collapse

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