Class: HashOfHash
- Inherits:
-
DefaultInitHash
- Object
- Hash
- DefaultInitHash
- HashOfHash
- Defined in:
- lib/fsm-0.0.0/graph/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.
5 6 7 8 9 10 11 12 13 |
# File 'lib/fsm-0.0.0/graph/directed_graph.rb', line 5 def initialize(&initBlock) super do if initBlock DefaultInitHash.new(&initBlock) else Hash.new end end end |