Sha256: bc320bf90a8b0559b0a315f86ca9ce8fe128f490314add8f9827e991fc27c831
Contents?: true
Size: 774 Bytes
Versions: 1
Compression:
Stored size: 774 Bytes
Contents
#### Simple Struct This example shows a simple struct. ```show.rb```: ```ruby require 'debug_helper' MyStruct = Struct.new(:a, :b, :c) struct = MyStruct.new(0, 1, 2) DebugHelper.show(struct, 'My simple struct') ``` The output shows details of the struct. ```show.yaml```: ```yaml --- MyStruct (message='My simple struct'): size: 3 Member 0: Name: Symbol: to_s: a size: 1 encoding: !ruby/encoding US-ASCII Value: Fixnum 0 Member 1: Name: Symbol: to_s: b size: 1 encoding: !ruby/encoding US-ASCII Value: Fixnum 1 Member 2: Name: 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/struct/simple/show.md |