Sha256: 17a0e095c1c9727025793ca1bc0f2f805b0bc28f3b67fda15f165cbb955908b1

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

Stored size: 533 Bytes

Contents

#### Circular Sets

This example shows sets that make a circular reference.

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

require 'debug_helper'

set_0 = Set.new([])
set_1 = Set.new([])
set_0.add(set_1)
set_1.add(set_0)
DebugHelper.show(set_0, 'My circular sets')
```

The output shows details of the sets.

The circular reference is not followed.

```show.yaml```:
```yaml
---
Set (message='My circular sets' size=1):
  Element 0:
    Set (size=1):
      Element 0: 'Set #<Set: {#<Set: {#<Set: {...}>}>}>'
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
debug_helper-1.7.0 markdown/readme/classes/set/circular/show.md