Sha256: 8694cca4dd950fa8367d7a211666225bda79b2246e49e34b25ae4c14334e8d14

Contents?: true

Size: 503 Bytes

Versions: 3

Compression:

Stored size: 503 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: :a
    Value: Fixnum 0
  Member 1:
    Name: :b
    Value: Fixnum 1
  Member 2:
    Name: :c
    Value: Fixnum 2
```

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
debug_helper-1.7.0 markdown/readme/classes/struct/simple/show.md
debug_helper-1.6.0 markdown/readme/classes/struct/simple/show.md
debug_helper-1.5.0 markdown/readme/classes/struct/simple/show.md