- is there a method to move 'up' a Hash tree in ruby?
- dat = {
- 'building' => {'street' => 'High Street 10', 'people' =>[Person, Person]}
- }
- def info with_root = false
- with_root ? dat : dat['building']
- end #info
- addr = {'street' => 'High Street 10', 'people' =>[Person, Person]}
- dat1 = {'building' => addr}
- dat2 = {'zip'=>55117, 'electricBillID'=>11223344, 'address' => addr