Sha256: 828092e4d434d6183f1039930d4a01a6429dd0d2fb0ee355ded081cd22fb4bbd

Contents?: true

Size: 878 Bytes

Versions: 3

Compression:

Stored size: 878 Bytes

Contents

#### Nested Structs

This example shows nested structs.

```show.rb```:
```ruby
require 'debug_helper'

MyStruct_0 = Struct.new(:a, :b)
MyStruct_1 = Struct.new(:c, :d)
struct_1a = MyStruct_1.new(2, 3)
struct_1b = MyStruct_1.new(4, 5)
struct_0 = MyStruct_0.new(struct_1a, struct_1b)
DebugHelper.show(struct_0, 'My nested struct')
```

The output shows details of the structs.

```show.yaml```:
```yaml
---
MyStruct_0 (message='My nested struct' size=2):
  Member 0:
    Name: :a
    Value:
      MyStruct_1 (size=2):
        Member 0:
          Name: :c
          Value: Fixnum 2
        Member 1:
          Name: :d
          Value: Fixnum 3
  Member 1:
    Name: :b
    Value:
      MyStruct_1 (size=2):
        Member 0:
          Name: :c
          Value: Fixnum 4
        Member 1:
          Name: :d
          Value: Fixnum 5
```

Version data entries

3 entries across 3 versions & 1 rubygems

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