Sha256: eb838ea239a0c0effd16882c73ee7092ec2d69d4d931392acc4b54cb2d76c272
Contents?: true
Size: 996 Bytes
Versions: 1
Compression:
Stored size: 996 Bytes
Contents
#### Mixed Hash This example shows a hash of mixed values. ```show.rb```: ```ruby require 'debug_helper' hash = { :a => 0, :b => 'one', :c => :two, } DebugHelper.show(hash, 'My mixed hash') ``` The output shows details of the hash. ```show.yaml```: ```yaml --- Hash (message='My mixed 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: String: to_s: one size: 3 encoding: !ruby/encoding UTF-8 ascii_only?: true bytesize: 3 Pair 2: Key: Symbol: to_s: c size: 1 encoding: !ruby/encoding US-ASCII Value: Symbol: to_s: two size: 3 encoding: !ruby/encoding US-ASCII ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
debug_helper-1.8.0 | markdown/readme/classes/hash/mixed/show.md |