debug_helper 1.7.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +22 -22
  3. data/README.md +848 -218
  4. data/lib/debug_helper.rb +79 -160
  5. data/lib/debug_helper/array_handler.rb +12 -0
  6. data/lib/debug_helper/dir_handler.rb +19 -0
  7. data/lib/debug_helper/each_pair_handler.rb +13 -0
  8. data/lib/debug_helper/each_with_index_handler.rb +11 -0
  9. data/lib/debug_helper/exception_handler.rb +14 -0
  10. data/lib/debug_helper/file_handler.rb +29 -0
  11. data/lib/debug_helper/generic_handler.rb +12 -0
  12. data/lib/debug_helper/handler.rb +102 -0
  13. data/lib/debug_helper/hash_handler.rb +19 -0
  14. data/lib/debug_helper/io_handler.rb +15 -0
  15. data/lib/debug_helper/match_data_handler.rb +17 -0
  16. data/lib/debug_helper/object_handler.rb +13 -0
  17. data/lib/debug_helper/open_struct_handler.rb +16 -0
  18. data/lib/debug_helper/range_handler.rb +14 -0
  19. data/lib/debug_helper/regexp_handler.rb +16 -0
  20. data/lib/debug_helper/set_handler.rb +12 -0
  21. data/lib/debug_helper/string_handler.rb +17 -0
  22. data/lib/debug_helper/struct_handler.rb +18 -0
  23. data/lib/debug_helper/symbol_handler.rb +15 -0
  24. data/lib/debug_helper/version.rb +3 -3
  25. data/markdown/readme/Rakefile +36 -6
  26. data/markdown/readme/class_inclusions.md +10 -3
  27. data/markdown/readme/class_links.md +10 -3
  28. data/markdown/readme/classes/array/circular/show.md +4 -2
  29. data/markdown/readme/classes/array/circular/show.yaml +4 -2
  30. data/markdown/readme/classes/array/mixed/show.md +6 -3
  31. data/markdown/readme/classes/array/mixed/show.yaml +6 -3
  32. data/markdown/readme/classes/array/nested/show.md +6 -3
  33. data/markdown/readme/classes/array/nested/show.yaml +6 -3
  34. data/markdown/readme/classes/array/simple/show.md +2 -1
  35. data/markdown/readme/classes/array/simple/show.yaml +2 -1
  36. data/markdown/readme/classes/dir/simple/show.md +28 -0
  37. data/markdown/readme/classes/dir/simple/show.rb +4 -0
  38. data/markdown/readme/classes/dir/simple/show.yaml +11 -0
  39. data/markdown/readme/classes/dir/simple/template.md +9 -0
  40. data/markdown/readme/classes/dir/template.md +3 -0
  41. data/markdown/readme/classes/exception/simple/show.md +44 -0
  42. data/markdown/readme/classes/exception/simple/show.rb +22 -0
  43. data/markdown/readme/classes/exception/simple/show.yaml +9 -0
  44. data/markdown/readme/classes/exception/simple/template.md +9 -0
  45. data/markdown/readme/classes/exception/template.md +3 -0
  46. data/markdown/readme/classes/file/simple/show.md +3 -3
  47. data/markdown/readme/classes/file/simple/show.yaml +3 -3
  48. data/markdown/readme/classes/hash/circular/show.md +12 -4
  49. data/markdown/readme/classes/hash/circular/show.yaml +12 -4
  50. data/markdown/readme/classes/hash/mixed/show.md +14 -6
  51. data/markdown/readme/classes/hash/mixed/show.yaml +14 -6
  52. data/markdown/readme/classes/hash/nested/show.md +24 -9
  53. data/markdown/readme/classes/hash/nested/show.yaml +24 -9
  54. data/markdown/readme/classes/hash/simple/show.md +10 -4
  55. data/markdown/readme/classes/hash/simple/show.yaml +10 -4
  56. data/markdown/readme/classes/io/simple/show.md +23 -0
  57. data/markdown/readme/classes/io/simple/show.rb +4 -0
  58. data/markdown/readme/classes/io/simple/show.yaml +6 -0
  59. data/markdown/readme/classes/io/simple/template.md +9 -0
  60. data/markdown/readme/classes/io/template.md +3 -0
  61. data/markdown/readme/classes/match_data/multiple_captures/show.md +33 -0
  62. data/markdown/readme/classes/match_data/multiple_captures/show.rb +4 -0
  63. data/markdown/readme/classes/match_data/multiple_captures/show.yaml +16 -0
  64. data/markdown/readme/classes/match_data/multiple_captures/template.md +9 -0
  65. data/markdown/readme/classes/match_data/named_captures/show.md +31 -0
  66. data/markdown/readme/classes/match_data/named_captures/show.rb +4 -0
  67. data/markdown/readme/classes/match_data/named_captures/show.yaml +14 -0
  68. data/markdown/readme/classes/match_data/named_captures/template.md +9 -0
  69. data/markdown/readme/classes/match_data/simple/show.md +25 -0
  70. data/markdown/readme/classes/match_data/simple/show.rb +4 -0
  71. data/markdown/readme/classes/match_data/simple/show.yaml +8 -0
  72. data/markdown/readme/classes/match_data/simple/template.md +9 -0
  73. data/markdown/readme/classes/match_data/template.md +7 -0
  74. data/markdown/readme/classes/object/object/show.md +23 -0
  75. data/markdown/readme/classes/object/object/show.rb +8 -0
  76. data/markdown/readme/classes/object/object/show.yaml +2 -0
  77. data/markdown/readme/classes/object/object/template.md +9 -0
  78. data/markdown/readme/classes/object/template.md +1 -7
  79. data/markdown/readme/classes/open_struct/circular/show.md +40 -0
  80. data/markdown/readme/classes/open_struct/circular/show.rb +8 -0
  81. data/markdown/readme/classes/open_struct/circular/show.yaml +17 -0
  82. data/markdown/readme/classes/open_struct/circular/template.md +11 -0
  83. data/markdown/readme/classes/open_struct/mixed/show.md +51 -0
  84. data/markdown/readme/classes/open_struct/mixed/show.rb +5 -0
  85. data/markdown/readme/classes/open_struct/mixed/show.yaml +33 -0
  86. data/markdown/readme/classes/open_struct/mixed/template.md +9 -0
  87. data/markdown/readme/classes/open_struct/nested/show.md +73 -0
  88. data/markdown/readme/classes/open_struct/nested/show.rb +14 -0
  89. data/markdown/readme/classes/open_struct/nested/show.yaml +46 -0
  90. data/markdown/readme/classes/open_struct/nested/template.md +9 -0
  91. data/markdown/readme/classes/open_struct/simple/show.md +41 -0
  92. data/markdown/readme/classes/open_struct/simple/show.rb +5 -0
  93. data/markdown/readme/classes/open_struct/simple/show.yaml +23 -0
  94. data/markdown/readme/classes/open_struct/simple/template.md +9 -0
  95. data/markdown/readme/classes/open_struct/template.md +9 -0
  96. data/markdown/readme/classes/range/exclude_end/show.md +22 -0
  97. data/markdown/readme/classes/range/exclude_end/show.rb +4 -0
  98. data/markdown/readme/classes/range/exclude_end/show.yaml +5 -0
  99. data/markdown/readme/classes/range/exclude_end/template.md +9 -0
  100. data/markdown/readme/classes/range/include_end/show.md +22 -0
  101. data/markdown/readme/classes/range/include_end/show.rb +4 -0
  102. data/markdown/readme/classes/range/include_end/show.yaml +5 -0
  103. data/markdown/readme/classes/range/include_end/template.md +9 -0
  104. data/markdown/readme/classes/range/template.md +5 -0
  105. data/markdown/readme/classes/regexp/named_captures/show.md +28 -0
  106. data/markdown/readme/classes/regexp/named_captures/show.rb +4 -0
  107. data/markdown/readme/classes/regexp/named_captures/show.yaml +11 -0
  108. data/markdown/readme/classes/regexp/named_captures/template.md +9 -0
  109. data/markdown/readme/classes/regexp/simple/show.md +24 -0
  110. data/markdown/readme/classes/regexp/simple/show.rb +4 -0
  111. data/markdown/readme/classes/regexp/simple/show.yaml +7 -0
  112. data/markdown/readme/classes/regexp/simple/template.md +9 -0
  113. data/markdown/readme/classes/regexp/template.md +5 -0
  114. data/markdown/readme/classes/set/circular/show.md +4 -2
  115. data/markdown/readme/classes/set/circular/show.yaml +4 -2
  116. data/markdown/readme/classes/set/mixed/show.md +6 -3
  117. data/markdown/readme/classes/set/mixed/show.yaml +6 -3
  118. data/markdown/readme/classes/set/nested/show.md +6 -3
  119. data/markdown/readme/classes/set/nested/show.yaml +6 -3
  120. data/markdown/readme/classes/set/simple/show.md +2 -1
  121. data/markdown/readme/classes/set/simple/show.yaml +2 -1
  122. data/markdown/readme/classes/string/multiline/show.md +2 -1
  123. data/markdown/readme/classes/string/multiline/show.yaml +2 -1
  124. data/markdown/readme/classes/string/simple/show.md +2 -1
  125. data/markdown/readme/classes/string/simple/show.yaml +2 -1
  126. data/markdown/readme/classes/struct/circular/show.md +34 -8
  127. data/markdown/readme/classes/struct/circular/show.yaml +34 -8
  128. data/markdown/readme/classes/struct/mixed/show.md +21 -6
  129. data/markdown/readme/classes/struct/mixed/show.yaml +21 -6
  130. data/markdown/readme/classes/struct/nested/show.md +36 -9
  131. data/markdown/readme/classes/struct/nested/show.yaml +36 -9
  132. data/markdown/readme/classes/struct/simple/show.md +17 -4
  133. data/markdown/readme/classes/struct/simple/show.yaml +17 -4
  134. data/markdown/readme/classes/symbol/simple/show.md +2 -1
  135. data/markdown/readme/classes/symbol/simple/show.yaml +2 -1
  136. data/markdown/readme/options/depth/show.md +30 -15
  137. data/markdown/readme/options/depth/show.yaml +30 -15
  138. data/markdown/readme/template.md +8 -8
  139. metadata +88 -14
  140. data/markdown/readme/classes/object/datetime/show.md +0 -18
  141. data/markdown/readme/classes/object/datetime/show.rb +0 -4
  142. data/markdown/readme/classes/object/datetime/show.yaml +0 -1
  143. data/markdown/readme/classes/object/datetime/template.md +0 -9
  144. data/markdown/readme/classes/object/range/show.md +0 -19
  145. data/markdown/readme/classes/object/range/show.rb +0 -4
  146. data/markdown/readme/classes/object/range/show.yaml +0 -2
  147. data/markdown/readme/classes/object/range/template.md +0 -9
  148. data/markdown/readme/classes/object/regexp/show.md +0 -19
  149. data/markdown/readme/classes/object/regexp/show.rb +0 -4
  150. data/markdown/readme/classes/object/regexp/show.yaml +0 -2
  151. data/markdown/readme/classes/object/regexp/template.md +0 -9
@@ -0,0 +1,9 @@
1
+ #### Inclusive Range
2
+
3
+ This example shows a ```Range``` that includes its end value.
4
+
5
+ @[ruby](show.rb)
6
+
7
+ The output shows details of the ```Range```.
8
+
9
+ @[yaml](show.yaml)
@@ -0,0 +1,5 @@
1
+ ### Range
2
+
3
+ @[:markdown](include_end/show.md)
4
+
5
+ @[:markdown](exclude_end/show.md)
@@ -0,0 +1,28 @@
1
+ #### Named Captures
2
+
3
+ This example shows a ```Regexp``` with named captures.
4
+
5
+ ```show.rb```:
6
+ ```ruby
7
+ require 'debug_helper'
8
+
9
+ regexp = Regexp.new(/(?<a>.)(?<b>.)/)
10
+ DebugHelper.show(regexp, 'My regexp with named captures')
11
+ ```
12
+
13
+ The output shows details of the ```Regexp```.
14
+
15
+ ```show.yaml```:
16
+ ```yaml
17
+ ---
18
+ Regexp (message='My regexp with named captures'):
19
+ to_s: "(?-mix:(?<a>.)(?<b>.))"
20
+ casefold?: false
21
+ named_captures:
22
+ a:
23
+ - 1
24
+ b:
25
+ - 2
26
+ encoding: !ruby/encoding US-ASCII
27
+ fixed_encoding?: false
28
+ ```
@@ -0,0 +1,4 @@
1
+ require 'debug_helper'
2
+
3
+ regexp = Regexp.new(/(?<a>.)(?<b>.)/)
4
+ DebugHelper.show(regexp, 'My regexp with named captures')
@@ -0,0 +1,11 @@
1
+ ---
2
+ Regexp (message='My regexp with named captures'):
3
+ to_s: "(?-mix:(?<a>.)(?<b>.))"
4
+ casefold?: false
5
+ named_captures:
6
+ a:
7
+ - 1
8
+ b:
9
+ - 2
10
+ encoding: !ruby/encoding US-ASCII
11
+ fixed_encoding?: false
@@ -0,0 +1,9 @@
1
+ #### Named Captures
2
+
3
+ This example shows a ```Regexp``` with named captures.
4
+
5
+ @[ruby](show.rb)
6
+
7
+ The output shows details of the ```Regexp```.
8
+
9
+ @[yaml](show.yaml)
@@ -0,0 +1,24 @@
1
+ #### Simple Regexp
2
+
3
+ This example shows a simple ```Regexp```.
4
+
5
+ ```show.rb```:
6
+ ```ruby
7
+ require 'debug_helper'
8
+
9
+ regexp = Regexp.new(/\w+/)
10
+ DebugHelper.show(regexp, 'My simple regexp')
11
+ ```
12
+
13
+ The output shows details of the ```Regexp```.
14
+
15
+ ```show.yaml```:
16
+ ```yaml
17
+ ---
18
+ Regexp (message='My simple regexp'):
19
+ to_s: "(?-mix:\\w+)"
20
+ casefold?: false
21
+ named_captures: {}
22
+ encoding: !ruby/encoding US-ASCII
23
+ fixed_encoding?: false
24
+ ```
@@ -0,0 +1,4 @@
1
+ require 'debug_helper'
2
+
3
+ regexp = Regexp.new(/\w+/)
4
+ DebugHelper.show(regexp, 'My simple regexp')
@@ -0,0 +1,7 @@
1
+ ---
2
+ Regexp (message='My simple regexp'):
3
+ to_s: "(?-mix:\\w+)"
4
+ casefold?: false
5
+ named_captures: {}
6
+ encoding: !ruby/encoding US-ASCII
7
+ fixed_encoding?: false
@@ -0,0 +1,9 @@
1
+ #### Simple Regexp
2
+
3
+ This example shows a simple ```Regexp```.
4
+
5
+ @[ruby](show.rb)
6
+
7
+ The output shows details of the ```Regexp```.
8
+
9
+ @[yaml](show.yaml)
@@ -0,0 +1,5 @@
1
+ ### Regexp
2
+
3
+ @[:markdown](simple/show.md)
4
+
5
+ @[:markdown](named_captures/show.md)
@@ -22,8 +22,10 @@ The circular reference is not followed.
22
22
  ```show.yaml```:
23
23
  ```yaml
24
24
  ---
25
- Set (message='My circular sets' size=1):
25
+ Set (message='My circular sets'):
26
+ size: 1
26
27
  Element 0:
27
- Set (size=1):
28
+ Set:
29
+ size: 1
28
30
  Element 0: 'Set #<Set: {#<Set: {#<Set: {...}>}>}>'
29
31
  ```
@@ -1,5 +1,7 @@
1
1
  ---
2
- Set (message='My circular sets' size=1):
2
+ Set (message='My circular sets'):
3
+ size: 1
3
4
  Element 0:
4
- Set (size=1):
5
+ Set:
6
+ size: 1
5
7
  Element 0: 'Set #<Set: {#<Set: {#<Set: {...}>}>}>'
@@ -17,16 +17,19 @@ The output shows details of the set.
17
17
  ```show.yaml```:
18
18
  ```yaml
19
19
  ---
20
- Set (message='My mixed set' size=3):
20
+ Set (message='My mixed set'):
21
+ size: 3
21
22
  Element 0: Fixnum 0
22
23
  Element 1:
23
- String (size=3):
24
+ String:
24
25
  to_s: one
26
+ size: 3
25
27
  encoding: !ruby/encoding UTF-8
26
28
  ascii_only?: true
27
29
  bytesize: 3
28
30
  Element 2:
29
- Symbol (size=3):
31
+ Symbol:
30
32
  to_s: two
33
+ size: 3
31
34
  encoding: !ruby/encoding US-ASCII
32
35
  ```
@@ -1,13 +1,16 @@
1
1
  ---
2
- Set (message='My mixed set' size=3):
2
+ Set (message='My mixed set'):
3
+ size: 3
3
4
  Element 0: Fixnum 0
4
5
  Element 1:
5
- String (size=3):
6
+ String:
6
7
  to_s: one
8
+ size: 3
7
9
  encoding: !ruby/encoding UTF-8
8
10
  ascii_only?: true
9
11
  bytesize: 3
10
12
  Element 2:
11
- Symbol (size=3):
13
+ Symbol:
12
14
  to_s: two
15
+ size: 3
13
16
  encoding: !ruby/encoding US-ASCII
@@ -21,14 +21,17 @@ The output shows details of the sets.
21
21
  ```show.yaml```:
22
22
  ```yaml
23
23
  ---
24
- Set (message='My nested sets' size=3):
24
+ Set (message='My nested sets'):
25
+ size: 3
25
26
  Element 0: Fixnum 0
26
27
  Element 1:
27
- Set (size=2):
28
+ Set:
29
+ size: 2
28
30
  Element 0: Fixnum 1
29
31
  Element 1: Fixnum 2
30
32
  Element 2:
31
- Set (size=2):
33
+ Set:
34
+ size: 2
32
35
  Element 0: Fixnum 3
33
36
  Element 1: Fixnum 4
34
37
  ```
@@ -1,11 +1,14 @@
1
1
  ---
2
- Set (message='My nested sets' size=3):
2
+ Set (message='My nested sets'):
3
+ size: 3
3
4
  Element 0: Fixnum 0
4
5
  Element 1:
5
- Set (size=2):
6
+ Set:
7
+ size: 2
6
8
  Element 0: Fixnum 1
7
9
  Element 1: Fixnum 2
8
10
  Element 2:
9
- Set (size=2):
11
+ Set:
12
+ size: 2
10
13
  Element 0: Fixnum 3
11
14
  Element 1: Fixnum 4
@@ -17,7 +17,8 @@ The output shows details of the set.
17
17
  ```show.yaml```:
18
18
  ```yaml
19
19
  ---
20
- Set (message='My simple set' size=3):
20
+ Set (message='My simple set'):
21
+ size: 3
21
22
  Element 0: Fixnum 5
22
23
  Element 1: Fixnum 10
23
24
  Element 2: Fixnum 15
@@ -1,5 +1,6 @@
1
1
  ---
2
- Set (message='My simple set' size=3):
2
+ Set (message='My simple set'):
3
+ size: 3
3
4
  Element 0: Fixnum 5
4
5
  Element 1: Fixnum 10
5
6
  Element 2: Fixnum 15
@@ -18,10 +18,11 @@ The output shows details of the string.
18
18
  ```show.yaml```:
19
19
  ```yaml
20
20
  ---
21
- String (message='My multiline string' size=122):
21
+ String (message='My multiline string'):
22
22
  to_s: |
23
23
  Lorem Ipsum dolor sit amet,consectetur adipisicing elit,
24
24
  sed doeiusmod tempor incididunt ut laboreet dolore magna aliqua.
25
+ size: 122
25
26
  encoding: !ruby/encoding UTF-8
26
27
  ascii_only?: true
27
28
  bytesize: 122
@@ -1,8 +1,9 @@
1
1
  ---
2
- String (message='My multiline string' size=122):
2
+ String (message='My multiline string'):
3
3
  to_s: |
4
4
  Lorem Ipsum dolor sit amet,consectetur adipisicing elit,
5
5
  sed doeiusmod tempor incididunt ut laboreet dolore magna aliqua.
6
+ size: 122
6
7
  encoding: !ruby/encoding UTF-8
7
8
  ascii_only?: true
8
9
  bytesize: 122
@@ -15,8 +15,9 @@ The output shows details of the string.
15
15
  ```show.yaml```:
16
16
  ```yaml
17
17
  ---
18
- String (message='My simple string' size=11):
18
+ String (message='My simple string'):
19
19
  to_s: Lorem ipsum
20
+ size: 11
20
21
  encoding: !ruby/encoding UTF-8
21
22
  ascii_only?: true
22
23
  bytesize: 11
@@ -1,6 +1,7 @@
1
1
  ---
2
- String (message='My simple string' size=11):
2
+ String (message='My simple string'):
3
3
  to_s: Lorem ipsum
4
+ size: 11
4
5
  encoding: !ruby/encoding UTF-8
5
6
  ascii_only?: true
6
7
  bytesize: 11
@@ -21,25 +21,51 @@ The circular reference is not followed.
21
21
  ```show.yaml```:
22
22
  ```yaml
23
23
  ---
24
- MyStruct (message='My circular struct' size=3):
24
+ MyStruct (message='My circular struct'):
25
+ size: 3
25
26
  Member 0:
26
- Name: :a
27
+ Name:
28
+ Symbol:
29
+ to_s: a
30
+ size: 1
31
+ encoding: !ruby/encoding US-ASCII
27
32
  Value:
28
- MyStruct (size=3):
33
+ MyStruct:
34
+ size: 3
29
35
  Member 0:
30
- Name: :a
36
+ Name:
37
+ Symbol:
38
+ to_s: a
39
+ size: 1
40
+ encoding: !ruby/encoding US-ASCII
31
41
  Value: 'MyStruct #<struct MyStruct a=#<struct MyStruct a=#<struct MyStruct:...>,
32
42
  b=4, c=5>, b=1, c=2>'
33
43
  Member 1:
34
- Name: :b
44
+ Name:
45
+ Symbol:
46
+ to_s: b
47
+ size: 1
48
+ encoding: !ruby/encoding US-ASCII
35
49
  Value: Fixnum 4
36
50
  Member 2:
37
- Name: :c
51
+ Name:
52
+ Symbol:
53
+ to_s: c
54
+ size: 1
55
+ encoding: !ruby/encoding US-ASCII
38
56
  Value: Fixnum 5
39
57
  Member 1:
40
- Name: :b
58
+ Name:
59
+ Symbol:
60
+ to_s: b
61
+ size: 1
62
+ encoding: !ruby/encoding US-ASCII
41
63
  Value: Fixnum 1
42
64
  Member 2:
43
- Name: :c
65
+ Name:
66
+ Symbol:
67
+ to_s: c
68
+ size: 1
69
+ encoding: !ruby/encoding US-ASCII
44
70
  Value: Fixnum 2
45
71
  ```
@@ -1,22 +1,48 @@
1
1
  ---
2
- MyStruct (message='My circular struct' size=3):
2
+ MyStruct (message='My circular struct'):
3
+ size: 3
3
4
  Member 0:
4
- Name: :a
5
+ Name:
6
+ Symbol:
7
+ to_s: a
8
+ size: 1
9
+ encoding: !ruby/encoding US-ASCII
5
10
  Value:
6
- MyStruct (size=3):
11
+ MyStruct:
12
+ size: 3
7
13
  Member 0:
8
- Name: :a
14
+ Name:
15
+ Symbol:
16
+ to_s: a
17
+ size: 1
18
+ encoding: !ruby/encoding US-ASCII
9
19
  Value: 'MyStruct #<struct MyStruct a=#<struct MyStruct a=#<struct MyStruct:...>,
10
20
  b=4, c=5>, b=1, c=2>'
11
21
  Member 1:
12
- Name: :b
22
+ Name:
23
+ Symbol:
24
+ to_s: b
25
+ size: 1
26
+ encoding: !ruby/encoding US-ASCII
13
27
  Value: Fixnum 4
14
28
  Member 2:
15
- Name: :c
29
+ Name:
30
+ Symbol:
31
+ to_s: c
32
+ size: 1
33
+ encoding: !ruby/encoding US-ASCII
16
34
  Value: Fixnum 5
17
35
  Member 1:
18
- Name: :b
36
+ Name:
37
+ Symbol:
38
+ to_s: b
39
+ size: 1
40
+ encoding: !ruby/encoding US-ASCII
19
41
  Value: Fixnum 1
20
42
  Member 2:
21
- Name: :c
43
+ Name:
44
+ Symbol:
45
+ to_s: c
46
+ size: 1
47
+ encoding: !ruby/encoding US-ASCII
22
48
  Value: Fixnum 2
@@ -16,22 +16,37 @@ The output shows details of the struct.
16
16
  ```show.yaml```:
17
17
  ```yaml
18
18
  ---
19
- MyStruct (message='My mixed struct' size=3):
19
+ MyStruct (message='My mixed struct'):
20
+ size: 3
20
21
  Member 0:
21
- Name: :a
22
+ Name:
23
+ Symbol:
24
+ to_s: a
25
+ size: 1
26
+ encoding: !ruby/encoding US-ASCII
22
27
  Value: Fixnum 0
23
28
  Member 1:
24
- Name: :b
29
+ Name:
30
+ Symbol:
31
+ to_s: b
32
+ size: 1
33
+ encoding: !ruby/encoding US-ASCII
25
34
  Value:
26
- String (size=3):
35
+ String:
27
36
  to_s: one
37
+ size: 3
28
38
  encoding: !ruby/encoding UTF-8
29
39
  ascii_only?: true
30
40
  bytesize: 3
31
41
  Member 2:
32
- Name: :c
42
+ Name:
43
+ Symbol:
44
+ to_s: c
45
+ size: 1
46
+ encoding: !ruby/encoding US-ASCII
33
47
  Value:
34
- Symbol (size=3):
48
+ Symbol:
35
49
  to_s: two
50
+ size: 3
36
51
  encoding: !ruby/encoding US-ASCII
37
52
  ```