Sha256: aa1df2c90dc8b3dd484e14f3198d264ebeafa0ca4b3294e313c4e1c98571c5a4
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
#### Nested Hashes This example shows nested hashes. ```show.rb```: ```ruby require 'debug_helper' hash = { :a => { :b => 0, :c => 1, }, :d => { :e => 2, :f => 3, } } DebugHelper.show(hash, 'My nested hash') ``` The output shows details of the hashes. ```show.yaml```: ```yaml --- Hash (size=2 message='My nested hash'): Pair 0: Key: Symbol (size=1 encoding=US-ASCII): :a Value: Hash (size=2): Pair 0: Key: Symbol (size=1 encoding=US-ASCII): :b Value: Fixnum 0 Pair 1: Key: Symbol (size=1 encoding=US-ASCII): :c Value: Fixnum 1 Pair 1: Key: Symbol (size=1 encoding=US-ASCII): :d Value: Hash (size=2): Pair 0: Key: Symbol (size=1 encoding=US-ASCII): :e Value: Fixnum 2 Pair 1: Key: Symbol (size=1 encoding=US-ASCII): :f Value: Fixnum 3 ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
debug_helper-1.5.0 | markdown/readme/classes/hash/nested/show.md |