Sha256: d891c2fff76f312815a21f928fc9b8cf91d389223e70dd6685b3ee62fb3617ca
Contents?: true
Size: 830 Bytes
Versions: 1
Compression:
Stored size: 830 Bytes
Contents
#### Simple Hash This example shows a simple hash. ```show.rb```: ```ruby require 'debug_helper' hash = {:a => 0, :b => 1, :c => 2} DebugHelper.show(hash, 'My simple hash') ``` The output shows details of the hash. ```show.yaml```: ```yaml --- Hash (message='My simple hash'): Hash#size: 3 Hash#default: Hash#default_proc: Pair 0: Key: Symbol: Symbol#to_s: a Symbol#size: 1 Symbol#encoding: !ruby/encoding US-ASCII Value: Integer 0 Pair 1: Key: Symbol: Symbol#to_s: b Symbol#size: 1 Symbol#encoding: !ruby/encoding US-ASCII Value: Integer 1 Pair 2: Key: Symbol: Symbol#to_s: c Symbol#size: 1 Symbol#encoding: !ruby/encoding US-ASCII Value: Integer 2 ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
debug_helper-2.1.0 | markdown/readme/classes/hash/simple/show.md |