Sha256: 2d6a986d8992b9f4695851d46ecebe4f457c607aff7911f92bb9d55b4ebf8a7a
Contents?: true
Size: 749 Bytes
Versions: 1
Compression:
Stored size: 749 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'): size: 3 default: default_proc: Pair 0: Key: Symbol: to_s: a size: 1 encoding: !ruby/encoding US-ASCII Value: Fixnum 0 Pair 1: Key: Symbol: to_s: b size: 1 encoding: !ruby/encoding US-ASCII Value: Fixnum 1 Pair 2: Key: Symbol: to_s: c size: 1 encoding: !ruby/encoding US-ASCII Value: Fixnum 2 ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
debug_helper-1.8.0 | markdown/readme/classes/hash/simple/show.md |