Sha256: 9d383679d879b4d598a7f8e0a5dde5364e0be56baa21e6cca030bb70f3b86eca
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 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 (message='My nested hash'): size: 2 default: default_proc: Pair 0: Key: Symbol: to_s: a size: 1 encoding: !ruby/encoding US-ASCII Value: Hash: size: 2 default: default_proc: Pair 0: Key: Symbol: to_s: b size: 1 encoding: !ruby/encoding US-ASCII Value: Fixnum 0 Pair 1: Key: Symbol: to_s: c size: 1 encoding: !ruby/encoding US-ASCII Value: Fixnum 1 Pair 1: Key: Symbol: to_s: d size: 1 encoding: !ruby/encoding US-ASCII Value: Hash: size: 2 default: default_proc: Pair 0: Key: Symbol: to_s: e size: 1 encoding: !ruby/encoding US-ASCII Value: Fixnum 2 Pair 1: Key: Symbol: to_s: f size: 1 encoding: !ruby/encoding US-ASCII Value: Fixnum 3 ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
debug_helper-1.8.0 | markdown/readme/classes/hash/nested/show.md |