debug_helper 1.8.0 → 2.0.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +572 -314
- data/bin/console +14 -14
- data/lib/debug_helper/handler.rb +8 -2
- data/lib/debug_helper/version.rb +1 -1
- data/markdown/readme/Rakefile +2 -1
- data/markdown/readme/class_inclusions.md +1 -0
- data/markdown/readme/classes/array/circular/show.md +2 -2
- data/markdown/readme/classes/array/circular/show.yaml +2 -2
- data/markdown/readme/classes/array/mixed/show.md +9 -9
- data/markdown/readme/classes/array/mixed/show.yaml +9 -9
- data/markdown/readme/classes/array/nested/show.md +3 -3
- data/markdown/readme/classes/array/nested/show.yaml +3 -3
- data/markdown/readme/classes/array/simple/show.md +1 -1
- data/markdown/readme/classes/array/simple/show.yaml +1 -1
- data/markdown/readme/classes/custom/both/foo.rb +21 -0
- data/markdown/readme/classes/custom/both/foo_handler.rb +27 -0
- data/markdown/readme/classes/custom/both/show.md +100 -0
- data/markdown/readme/classes/custom/both/show.rb +5 -0
- data/markdown/readme/classes/custom/both/show.yaml +20 -0
- data/markdown/readme/classes/custom/both/template.md +19 -0
- data/markdown/readme/classes/custom/instance/foo.rb +13 -0
- data/markdown/readme/classes/custom/instance/foo_handler.rb +18 -0
- data/markdown/readme/classes/custom/instance/show.md +74 -0
- data/markdown/readme/classes/custom/instance/show.rb +5 -0
- data/markdown/readme/classes/custom/instance/show.yaml +11 -0
- data/markdown/readme/classes/custom/instance/template.md +19 -0
- data/markdown/readme/classes/custom/singleton/foo.rb +13 -0
- data/markdown/readme/classes/custom/singleton/foo_handler.rb +18 -0
- data/markdown/readme/classes/custom/singleton/show.md +74 -0
- data/markdown/readme/classes/custom/singleton/show.rb +5 -0
- data/markdown/readme/classes/custom/singleton/show.yaml +11 -0
- data/markdown/readme/classes/custom/singleton/template.md +19 -0
- data/markdown/readme/classes/custom/template.md +10 -0
- data/markdown/readme/classes/dir/simple/show.md +3 -3
- data/markdown/readme/classes/dir/simple/show.yaml +3 -3
- data/markdown/readme/classes/exception/simple/show.md +3 -3
- data/markdown/readme/classes/exception/simple/show.yaml +3 -3
- data/markdown/readme/classes/file/simple/show.md +17 -17
- data/markdown/readme/classes/file/simple/show.yaml +17 -17
- data/markdown/readme/classes/hash/circular/show.md +12 -12
- data/markdown/readme/classes/hash/circular/show.yaml +12 -12
- data/markdown/readme/classes/hash/mixed/show.md +20 -20
- data/markdown/readme/classes/hash/mixed/show.yaml +20 -20
- data/markdown/readme/classes/hash/nested/show.md +27 -27
- data/markdown/readme/classes/hash/nested/show.yaml +27 -27
- data/markdown/readme/classes/hash/simple/show.md +12 -12
- data/markdown/readme/classes/hash/simple/show.yaml +12 -12
- data/markdown/readme/classes/io/simple/show.md +4 -4
- data/markdown/readme/classes/io/simple/show.yaml +4 -4
- data/markdown/readme/classes/match_data/multiple_captures/show.md +5 -5
- data/markdown/readme/classes/match_data/multiple_captures/show.yaml +5 -5
- data/markdown/readme/classes/match_data/named_captures/show.md +5 -5
- data/markdown/readme/classes/match_data/named_captures/show.yaml +5 -5
- data/markdown/readme/classes/match_data/simple/show.md +5 -5
- data/markdown/readme/classes/match_data/simple/show.yaml +5 -5
- data/markdown/readme/classes/open_struct/circular/show.md +6 -6
- data/markdown/readme/classes/open_struct/circular/show.yaml +6 -6
- data/markdown/readme/classes/open_struct/mixed/show.md +17 -17
- data/markdown/readme/classes/open_struct/mixed/show.yaml +17 -17
- data/markdown/readme/classes/open_struct/nested/show.md +18 -18
- data/markdown/readme/classes/open_struct/nested/show.yaml +18 -18
- data/markdown/readme/classes/open_struct/simple/show.md +9 -9
- data/markdown/readme/classes/open_struct/simple/show.yaml +9 -9
- data/markdown/readme/classes/range/exclude_end/show.md +3 -3
- data/markdown/readme/classes/range/exclude_end/show.yaml +3 -3
- data/markdown/readme/classes/range/include_end/show.md +3 -3
- data/markdown/readme/classes/range/include_end/show.yaml +3 -3
- data/markdown/readme/classes/regexp/named_captures/show.md +5 -5
- data/markdown/readme/classes/regexp/named_captures/show.yaml +5 -5
- data/markdown/readme/classes/regexp/simple/show.md +5 -5
- data/markdown/readme/classes/regexp/simple/show.yaml +5 -5
- data/markdown/readme/classes/set/circular/show.md +2 -2
- data/markdown/readme/classes/set/circular/show.yaml +2 -2
- data/markdown/readme/classes/set/mixed/show.md +9 -9
- data/markdown/readme/classes/set/mixed/show.yaml +9 -9
- data/markdown/readme/classes/set/nested/show.md +3 -3
- data/markdown/readme/classes/set/nested/show.yaml +3 -3
- data/markdown/readme/classes/set/simple/show.md +1 -1
- data/markdown/readme/classes/set/simple/show.yaml +1 -1
- data/markdown/readme/classes/string/multiline/show.md +5 -5
- data/markdown/readme/classes/string/multiline/show.yaml +5 -5
- data/markdown/readme/classes/string/simple/show.md +5 -5
- data/markdown/readme/classes/string/simple/show.yaml +5 -5
- data/markdown/readme/classes/struct/circular/show.md +20 -20
- data/markdown/readme/classes/struct/circular/show.yaml +20 -20
- data/markdown/readme/classes/struct/mixed/show.md +18 -18
- data/markdown/readme/classes/struct/mixed/show.yaml +18 -18
- data/markdown/readme/classes/struct/nested/show.md +21 -21
- data/markdown/readme/classes/struct/nested/show.yaml +21 -21
- data/markdown/readme/classes/struct/simple/show.md +10 -10
- data/markdown/readme/classes/struct/simple/show.yaml +10 -10
- data/markdown/readme/classes/symbol/simple/show.md +3 -3
- data/markdown/readme/classes/symbol/simple/show.yaml +3 -3
- data/markdown/readme/options/depth/show.md +15 -15
- data/markdown/readme/options/depth/show.yaml +15 -15
- data/markdown/readme/template.md +11 -8
- metadata +21 -2
@@ -16,13 +16,13 @@ The output shows details of the ```Regexp```.
|
|
16
16
|
```yaml
|
17
17
|
---
|
18
18
|
Regexp (message='My regexp with named captures'):
|
19
|
-
to_s: "(?-mix:(?<a>.)(?<b>.))"
|
20
|
-
casefold?: false
|
21
|
-
named_captures:
|
19
|
+
Regexp#to_s: "(?-mix:(?<a>.)(?<b>.))"
|
20
|
+
Regexp#casefold?: false
|
21
|
+
Regexp#named_captures:
|
22
22
|
a:
|
23
23
|
- 1
|
24
24
|
b:
|
25
25
|
- 2
|
26
|
-
encoding: !ruby/encoding US-ASCII
|
27
|
-
fixed_encoding?: false
|
26
|
+
Regexp#encoding: !ruby/encoding US-ASCII
|
27
|
+
Regexp#fixed_encoding?: false
|
28
28
|
```
|
@@ -1,11 +1,11 @@
|
|
1
1
|
---
|
2
2
|
Regexp (message='My regexp with named captures'):
|
3
|
-
to_s: "(?-mix:(?<a>.)(?<b>.))"
|
4
|
-
casefold?: false
|
5
|
-
named_captures:
|
3
|
+
Regexp#to_s: "(?-mix:(?<a>.)(?<b>.))"
|
4
|
+
Regexp#casefold?: false
|
5
|
+
Regexp#named_captures:
|
6
6
|
a:
|
7
7
|
- 1
|
8
8
|
b:
|
9
9
|
- 2
|
10
|
-
encoding: !ruby/encoding US-ASCII
|
11
|
-
fixed_encoding?: false
|
10
|
+
Regexp#encoding: !ruby/encoding US-ASCII
|
11
|
+
Regexp#fixed_encoding?: false
|
@@ -16,9 +16,9 @@ The output shows details of the ```Regexp```.
|
|
16
16
|
```yaml
|
17
17
|
---
|
18
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
|
19
|
+
Regexp#to_s: "(?-mix:\\w+)"
|
20
|
+
Regexp#casefold?: false
|
21
|
+
Regexp#named_captures: {}
|
22
|
+
Regexp#encoding: !ruby/encoding US-ASCII
|
23
|
+
Regexp#fixed_encoding?: false
|
24
24
|
```
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
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
|
3
|
+
Regexp#to_s: "(?-mix:\\w+)"
|
4
|
+
Regexp#casefold?: false
|
5
|
+
Regexp#named_captures: {}
|
6
|
+
Regexp#encoding: !ruby/encoding US-ASCII
|
7
|
+
Regexp#fixed_encoding?: false
|
@@ -18,18 +18,18 @@ The output shows details of the set.
|
|
18
18
|
```yaml
|
19
19
|
---
|
20
20
|
Set (message='My mixed set'):
|
21
|
-
size: 3
|
21
|
+
Set#size: 3
|
22
22
|
Element 0: Fixnum 0
|
23
23
|
Element 1:
|
24
24
|
String:
|
25
|
-
to_s: one
|
26
|
-
size: 3
|
27
|
-
encoding: !ruby/encoding UTF-8
|
28
|
-
ascii_only?: true
|
29
|
-
bytesize: 3
|
25
|
+
String#to_s: one
|
26
|
+
String#size: 3
|
27
|
+
String#encoding: !ruby/encoding UTF-8
|
28
|
+
String#ascii_only?: true
|
29
|
+
String#bytesize: 3
|
30
30
|
Element 2:
|
31
31
|
Symbol:
|
32
|
-
to_s: two
|
33
|
-
size: 3
|
34
|
-
encoding: !ruby/encoding US-ASCII
|
32
|
+
Symbol#to_s: two
|
33
|
+
Symbol#size: 3
|
34
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
35
35
|
```
|
@@ -1,16 +1,16 @@
|
|
1
1
|
---
|
2
2
|
Set (message='My mixed set'):
|
3
|
-
size: 3
|
3
|
+
Set#size: 3
|
4
4
|
Element 0: Fixnum 0
|
5
5
|
Element 1:
|
6
6
|
String:
|
7
|
-
to_s: one
|
8
|
-
size: 3
|
9
|
-
encoding: !ruby/encoding UTF-8
|
10
|
-
ascii_only?: true
|
11
|
-
bytesize: 3
|
7
|
+
String#to_s: one
|
8
|
+
String#size: 3
|
9
|
+
String#encoding: !ruby/encoding UTF-8
|
10
|
+
String#ascii_only?: true
|
11
|
+
String#bytesize: 3
|
12
12
|
Element 2:
|
13
13
|
Symbol:
|
14
|
-
to_s: two
|
15
|
-
size: 3
|
16
|
-
encoding: !ruby/encoding US-ASCII
|
14
|
+
Symbol#to_s: two
|
15
|
+
Symbol#size: 3
|
16
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
@@ -22,16 +22,16 @@ The output shows details of the sets.
|
|
22
22
|
```yaml
|
23
23
|
---
|
24
24
|
Set (message='My nested sets'):
|
25
|
-
size: 3
|
25
|
+
Set#size: 3
|
26
26
|
Element 0: Fixnum 0
|
27
27
|
Element 1:
|
28
28
|
Set:
|
29
|
-
size: 2
|
29
|
+
Set#size: 2
|
30
30
|
Element 0: Fixnum 1
|
31
31
|
Element 1: Fixnum 2
|
32
32
|
Element 2:
|
33
33
|
Set:
|
34
|
-
size: 2
|
34
|
+
Set#size: 2
|
35
35
|
Element 0: Fixnum 3
|
36
36
|
Element 1: Fixnum 4
|
37
37
|
```
|
@@ -1,14 +1,14 @@
|
|
1
1
|
---
|
2
2
|
Set (message='My nested sets'):
|
3
|
-
size: 3
|
3
|
+
Set#size: 3
|
4
4
|
Element 0: Fixnum 0
|
5
5
|
Element 1:
|
6
6
|
Set:
|
7
|
-
size: 2
|
7
|
+
Set#size: 2
|
8
8
|
Element 0: Fixnum 1
|
9
9
|
Element 1: Fixnum 2
|
10
10
|
Element 2:
|
11
11
|
Set:
|
12
|
-
size: 2
|
12
|
+
Set#size: 2
|
13
13
|
Element 0: Fixnum 3
|
14
14
|
Element 1: Fixnum 4
|
@@ -19,11 +19,11 @@ The output shows details of the string.
|
|
19
19
|
```yaml
|
20
20
|
---
|
21
21
|
String (message='My multiline string'):
|
22
|
-
to_s: |
|
22
|
+
String#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
|
26
|
-
encoding: !ruby/encoding UTF-8
|
27
|
-
ascii_only?: true
|
28
|
-
bytesize: 122
|
25
|
+
String#size: 122
|
26
|
+
String#encoding: !ruby/encoding UTF-8
|
27
|
+
String#ascii_only?: true
|
28
|
+
String#bytesize: 122
|
29
29
|
```
|
@@ -1,9 +1,9 @@
|
|
1
1
|
---
|
2
2
|
String (message='My multiline string'):
|
3
|
-
to_s: |
|
3
|
+
String#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
|
7
|
-
encoding: !ruby/encoding UTF-8
|
8
|
-
ascii_only?: true
|
9
|
-
bytesize: 122
|
6
|
+
String#size: 122
|
7
|
+
String#encoding: !ruby/encoding UTF-8
|
8
|
+
String#ascii_only?: true
|
9
|
+
String#bytesize: 122
|
@@ -16,9 +16,9 @@ The output shows details of the string.
|
|
16
16
|
```yaml
|
17
17
|
---
|
18
18
|
String (message='My simple string'):
|
19
|
-
to_s: Lorem ipsum
|
20
|
-
size: 11
|
21
|
-
encoding: !ruby/encoding UTF-8
|
22
|
-
ascii_only?: true
|
23
|
-
bytesize: 11
|
19
|
+
String#to_s: Lorem ipsum
|
20
|
+
String#size: 11
|
21
|
+
String#encoding: !ruby/encoding UTF-8
|
22
|
+
String#ascii_only?: true
|
23
|
+
String#bytesize: 11
|
24
24
|
```
|
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
String (message='My simple string'):
|
3
|
-
to_s: Lorem ipsum
|
4
|
-
size: 11
|
5
|
-
encoding: !ruby/encoding UTF-8
|
6
|
-
ascii_only?: true
|
7
|
-
bytesize: 11
|
3
|
+
String#to_s: Lorem ipsum
|
4
|
+
String#size: 11
|
5
|
+
String#encoding: !ruby/encoding UTF-8
|
6
|
+
String#ascii_only?: true
|
7
|
+
String#bytesize: 11
|
@@ -22,50 +22,50 @@ The circular reference is not followed.
|
|
22
22
|
```yaml
|
23
23
|
---
|
24
24
|
MyStruct (message='My circular struct'):
|
25
|
-
size: 3
|
25
|
+
MyStruct#size: 3
|
26
26
|
Member 0:
|
27
27
|
Name:
|
28
28
|
Symbol:
|
29
|
-
to_s: a
|
30
|
-
size: 1
|
31
|
-
encoding: !ruby/encoding US-ASCII
|
29
|
+
Symbol#to_s: a
|
30
|
+
Symbol#size: 1
|
31
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
32
32
|
Value:
|
33
33
|
MyStruct:
|
34
|
-
size: 3
|
34
|
+
MyStruct#size: 3
|
35
35
|
Member 0:
|
36
36
|
Name:
|
37
37
|
Symbol:
|
38
|
-
to_s: a
|
39
|
-
size: 1
|
40
|
-
encoding: !ruby/encoding US-ASCII
|
38
|
+
Symbol#to_s: a
|
39
|
+
Symbol#size: 1
|
40
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
41
41
|
Value: 'MyStruct #<struct MyStruct a=#<struct MyStruct a=#<struct MyStruct:...>,
|
42
42
|
b=4, c=5>, b=1, c=2>'
|
43
43
|
Member 1:
|
44
44
|
Name:
|
45
45
|
Symbol:
|
46
|
-
to_s: b
|
47
|
-
size: 1
|
48
|
-
encoding: !ruby/encoding US-ASCII
|
46
|
+
Symbol#to_s: b
|
47
|
+
Symbol#size: 1
|
48
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
49
49
|
Value: Fixnum 4
|
50
50
|
Member 2:
|
51
51
|
Name:
|
52
52
|
Symbol:
|
53
|
-
to_s: c
|
54
|
-
size: 1
|
55
|
-
encoding: !ruby/encoding US-ASCII
|
53
|
+
Symbol#to_s: c
|
54
|
+
Symbol#size: 1
|
55
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
56
56
|
Value: Fixnum 5
|
57
57
|
Member 1:
|
58
58
|
Name:
|
59
59
|
Symbol:
|
60
|
-
to_s: b
|
61
|
-
size: 1
|
62
|
-
encoding: !ruby/encoding US-ASCII
|
60
|
+
Symbol#to_s: b
|
61
|
+
Symbol#size: 1
|
62
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
63
63
|
Value: Fixnum 1
|
64
64
|
Member 2:
|
65
65
|
Name:
|
66
66
|
Symbol:
|
67
|
-
to_s: c
|
68
|
-
size: 1
|
69
|
-
encoding: !ruby/encoding US-ASCII
|
67
|
+
Symbol#to_s: c
|
68
|
+
Symbol#size: 1
|
69
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
70
70
|
Value: Fixnum 2
|
71
71
|
```
|
@@ -1,48 +1,48 @@
|
|
1
1
|
---
|
2
2
|
MyStruct (message='My circular struct'):
|
3
|
-
size: 3
|
3
|
+
MyStruct#size: 3
|
4
4
|
Member 0:
|
5
5
|
Name:
|
6
6
|
Symbol:
|
7
|
-
to_s: a
|
8
|
-
size: 1
|
9
|
-
encoding: !ruby/encoding US-ASCII
|
7
|
+
Symbol#to_s: a
|
8
|
+
Symbol#size: 1
|
9
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
10
10
|
Value:
|
11
11
|
MyStruct:
|
12
|
-
size: 3
|
12
|
+
MyStruct#size: 3
|
13
13
|
Member 0:
|
14
14
|
Name:
|
15
15
|
Symbol:
|
16
|
-
to_s: a
|
17
|
-
size: 1
|
18
|
-
encoding: !ruby/encoding US-ASCII
|
16
|
+
Symbol#to_s: a
|
17
|
+
Symbol#size: 1
|
18
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
19
19
|
Value: 'MyStruct #<struct MyStruct a=#<struct MyStruct a=#<struct MyStruct:...>,
|
20
20
|
b=4, c=5>, b=1, c=2>'
|
21
21
|
Member 1:
|
22
22
|
Name:
|
23
23
|
Symbol:
|
24
|
-
to_s: b
|
25
|
-
size: 1
|
26
|
-
encoding: !ruby/encoding US-ASCII
|
24
|
+
Symbol#to_s: b
|
25
|
+
Symbol#size: 1
|
26
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
27
27
|
Value: Fixnum 4
|
28
28
|
Member 2:
|
29
29
|
Name:
|
30
30
|
Symbol:
|
31
|
-
to_s: c
|
32
|
-
size: 1
|
33
|
-
encoding: !ruby/encoding US-ASCII
|
31
|
+
Symbol#to_s: c
|
32
|
+
Symbol#size: 1
|
33
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
34
34
|
Value: Fixnum 5
|
35
35
|
Member 1:
|
36
36
|
Name:
|
37
37
|
Symbol:
|
38
|
-
to_s: b
|
39
|
-
size: 1
|
40
|
-
encoding: !ruby/encoding US-ASCII
|
38
|
+
Symbol#to_s: b
|
39
|
+
Symbol#size: 1
|
40
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
41
41
|
Value: Fixnum 1
|
42
42
|
Member 2:
|
43
43
|
Name:
|
44
44
|
Symbol:
|
45
|
-
to_s: c
|
46
|
-
size: 1
|
47
|
-
encoding: !ruby/encoding US-ASCII
|
45
|
+
Symbol#to_s: c
|
46
|
+
Symbol#size: 1
|
47
|
+
Symbol#encoding: !ruby/encoding US-ASCII
|
48
48
|
Value: Fixnum 2
|