debug_helper 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +9 -9
  3. data/.travis.yml +5 -5
  4. data/CODE_OF_CONDUCT.md +74 -74
  5. data/Gemfile +6 -6
  6. data/Gemfile.lock +3 -1
  7. data/LICENSE.txt +21 -21
  8. data/README.md +119 -88
  9. data/Rakefile +10 -10
  10. data/bin/setup +8 -8
  11. data/debug_helper.gemspec +38 -37
  12. data/lib/debug_helper.rb +1 -0
  13. data/lib/debug_helper/method_handler.rb +20 -0
  14. data/lib/debug_helper/version.rb +1 -1
  15. data/markdown/readme/Rakefile +1 -0
  16. data/markdown/readme/class_inclusions.md +1 -0
  17. data/markdown/readme/class_links.md +1 -0
  18. data/markdown/readme/classes/array/mixed/show.md +1 -1
  19. data/markdown/readme/classes/array/mixed/show.yaml +1 -1
  20. data/markdown/readme/classes/array/nested/show.md +5 -5
  21. data/markdown/readme/classes/array/nested/show.yaml +5 -5
  22. data/markdown/readme/classes/array/simple/show.md +3 -3
  23. data/markdown/readme/classes/array/simple/show.yaml +3 -3
  24. data/markdown/readme/classes/file/simple/show.md +25 -20
  25. data/markdown/readme/classes/file/simple/show.rb +7 -2
  26. data/markdown/readme/classes/file/simple/show.yaml +18 -18
  27. data/markdown/readme/classes/hash/mixed/show.md +1 -1
  28. data/markdown/readme/classes/hash/mixed/show.yaml +1 -1
  29. data/markdown/readme/classes/hash/nested/show.md +4 -4
  30. data/markdown/readme/classes/hash/nested/show.yaml +4 -4
  31. data/markdown/readme/classes/hash/simple/show.md +3 -3
  32. data/markdown/readme/classes/hash/simple/show.yaml +3 -3
  33. data/markdown/readme/classes/method/simple/show.md +28 -0
  34. data/markdown/readme/classes/method/simple/show.rb +4 -0
  35. data/markdown/readme/classes/method/simple/show.yaml +11 -0
  36. data/markdown/readme/classes/method/simple/template.md +9 -0
  37. data/markdown/readme/classes/method/template.md +3 -0
  38. data/markdown/readme/classes/object/object/show.md +0 -1
  39. data/markdown/readme/classes/object/object/show.yaml +0 -1
  40. data/markdown/readme/classes/open_struct/mixed/show.md +1 -1
  41. data/markdown/readme/classes/open_struct/mixed/show.yaml +1 -1
  42. data/markdown/readme/classes/open_struct/nested/show.md +4 -4
  43. data/markdown/readme/classes/open_struct/nested/show.yaml +4 -4
  44. data/markdown/readme/classes/open_struct/simple/show.md +3 -3
  45. data/markdown/readme/classes/open_struct/simple/show.yaml +3 -3
  46. data/markdown/readme/classes/set/mixed/show.md +1 -1
  47. data/markdown/readme/classes/set/mixed/show.yaml +1 -1
  48. data/markdown/readme/classes/set/nested/show.md +5 -5
  49. data/markdown/readme/classes/set/nested/show.yaml +5 -5
  50. data/markdown/readme/classes/set/simple/show.md +3 -3
  51. data/markdown/readme/classes/set/simple/show.yaml +3 -3
  52. data/markdown/readme/classes/struct/circular/show.md +4 -4
  53. data/markdown/readme/classes/struct/circular/show.yaml +4 -4
  54. data/markdown/readme/classes/struct/mixed/show.md +1 -1
  55. data/markdown/readme/classes/struct/mixed/show.yaml +1 -1
  56. data/markdown/readme/classes/struct/nested/show.md +4 -4
  57. data/markdown/readme/classes/struct/nested/show.yaml +4 -4
  58. data/markdown/readme/classes/struct/simple/show.md +3 -3
  59. data/markdown/readme/classes/struct/simple/show.yaml +3 -3
  60. data/markdown/readme/options/depth/show.md +15 -15
  61. data/markdown/readme/options/depth/show.yaml +15 -15
  62. data/markdown/readme/template.md +2 -6
  63. metadata +23 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 51525f61840672b3952396ecdd6c3ae0fa3d295d
4
- data.tar.gz: df5651cf40374d2c92997bf35405ba547cf4c949
2
+ SHA256:
3
+ metadata.gz: 50e27e5074b2b6949b48cda838eb350a9316a2955fec2c69fc9ee531e6f02810
4
+ data.tar.gz: 404dfc6246948557dfb15a34e6ce5b245b34c619c2d106a2082423339379bda8
5
5
  SHA512:
6
- metadata.gz: 08d951eb328c33275490c86acf4f3332ca4e71c456a60d52ad5b0abc34804d8bb17258ef0207e05d0b5cdd0f88a5970263ba32e8c993f602f4cdb6a99b3fb7cf
7
- data.tar.gz: dfea562f5ccbb2025430df32ac098bac73b231af0a59324fb51165a0a01d106776283a850e0689a5ffd82fc2679803b85279ef2c2db7596b346bd3674666ce1e
6
+ metadata.gz: 2c6a1442261f7f9f6727d32b325f8a813e970dae35e43fec69d103f595906631c78d1da630a98ab2a6192099e3552220888fa087143706f24c3afa43731047a1
7
+ data.tar.gz: 83efdf7535b69881015fb8866f5993d0e871affcf552d7f2f78c0b4d249f7d15f1d76e3c13672344ea67ea8ed2b74fa3d1fe4be35a8ce73ffc806d085148b1a4
data/.gitignore CHANGED
@@ -1,9 +1,9 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /.idea/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /.idea/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -1,5 +1,5 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2.6
5
- before_install: gem install bundler -v 1.16.2
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.2.6
5
+ before_install: gem install bundler -v 1.16.2
@@ -1,74 +1,74 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at burdettelamar@yahoo.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at burdettelamar@yahoo.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
- source "https://rubygems.org"
2
-
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
-
5
- # Specify your gem's dependencies in debug_helper.gemspec
6
- gemspec
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in debug_helper.gemspec
6
+ gemspec
@@ -1,11 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- debug_helper (2.0.0)
4
+ debug_helper (2.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
+ diff-lcs (1.3)
9
10
  minitest (5.11.3)
10
11
  rake (10.5.0)
11
12
 
@@ -15,6 +16,7 @@ PLATFORMS
15
16
  DEPENDENCIES
16
17
  bundler (~> 1.16)
17
18
  debug_helper!
19
+ diff-lcs (~> 1.3)
18
20
  minitest (~> 5.0)
19
21
  rake (~> 10.0)
20
22
 
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2018 burdettelamar
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 burdettelamar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -2,13 +2,9 @@
2
2
 
3
3
  [![Gem](https://img.shields.io/gem/v/debug_helper.svg?style=flat)](http://rubygems.org/gems/debug_helper "View this project in Rubygems")
4
4
 
5
- ## New in Version 2.0
5
+ ## New in Version 2.1
6
6
 
7
- Previously, ```debug_helper``` explicated objects for only certain classes in the Ruby core and standard library.
8
-
9
- This version supports custom explication of user-defined classes. This means, in effect, that you can use ```debug_helper``` to explicate any classes you choose.
10
-
11
- See [Custom](#custom).
7
+ - Handling for instances of class ```Method```. See [Method](#method).
12
8
 
13
9
  ## About Debug Helper
14
10
 
@@ -47,6 +43,7 @@ Classes treated in detail:
47
43
  - [Hash](#hash)
48
44
  - [IO](#io)
49
45
  - [MatchData](#matchdata)
46
+ - [Method](#method)
50
47
  - [OpenStruct](#openstruct)
51
48
  - [Range](#range)
52
49
  - [Regexp](#regexp)
@@ -103,9 +100,9 @@ The output shows details of the array.
103
100
  ---
104
101
  Array (message='My simple array'):
105
102
  Array#size: 3
106
- Element 0: Fixnum 5
107
- Element 1: Fixnum 10
108
- Element 2: Fixnum 15
103
+ Element 0: Integer 5
104
+ Element 1: Integer 10
105
+ Element 2: Integer 15
109
106
  ```
110
107
 
111
108
  #### Mixed Array
@@ -127,7 +124,7 @@ The output shows details of the array.
127
124
  ---
128
125
  Array (message='My mixed array'):
129
126
  Array#size: 3
130
- Element 0: Fixnum 0
127
+ Element 0: Integer 0
131
128
  Element 1:
132
129
  String:
133
130
  String#to_s: one
@@ -161,17 +158,17 @@ The output shows details of the arrays.
161
158
  ---
162
159
  Array (message='My nested arrays'):
163
160
  Array#size: 3
164
- Element 0: Fixnum 0
161
+ Element 0: Integer 0
165
162
  Element 1:
166
163
  Array:
167
164
  Array#size: 2
168
- Element 0: Fixnum 1
169
- Element 1: Fixnum 2
165
+ Element 0: Integer 1
166
+ Element 1: Integer 2
170
167
  Element 2:
171
168
  Array:
172
169
  Array#size: 2
173
- Element 0: Fixnum 3
174
- Element 1: Fixnum 4
170
+ Element 0: Integer 3
171
+ Element 1: Integer 4
175
172
  ```
176
173
 
177
174
  #### Circular Arrays
@@ -289,8 +286,13 @@ This example shows a simple file.
289
286
  ```ruby
290
287
  require 'debug_helper'
291
288
 
292
- file = File.new(__FILE__)
293
- DebugHelper.show(file, 'My simple file')
289
+ gem_file_path = `gem which debug_helper`.chomp
290
+ gem_dir_path = File.dirname(gem_file_path)
291
+ gem_file_name = File.basename(gem_file_path)
292
+ Dir.chdir(gem_dir_path) do
293
+ file = File.new(gem_file_name)
294
+ DebugHelper.show(file, 'Gem file')
295
+ end
294
296
  ```
295
297
 
296
298
  The output shows details of the file.
@@ -298,24 +300,24 @@ The output shows details of the file.
298
300
  ```show.yaml```:
299
301
  ```yaml
300
302
  ---
301
- File (message='My simple file'):
302
- File.absolute_path("show.rb"): C:/Users/Burdette/Documents/GitHub/debug_helper/markdown/readme/classes/file/simple/show.rb
303
- File.atime("show.rb"): 2018-07-14 12:45:32.000000000 -05:00
304
- File.ctime("show.rb"): 2018-07-14 12:45:32.000000000 -05:00
305
- File.executable?("show.rb"): false
306
- File.exist?("show.rb"): true
307
- File.ftype("show.rb"): file
308
- File.mtime("show.rb"): 2018-07-14 12:45:32.000000000 -05:00
309
- File.path("show.rb"): show.rb
310
- File.pipe?("show.rb"): false
311
- File.readable?("show.rb"): true
312
- File.realpath("show.rb"): C:/Users/Burdette/Documents/GitHub/debug_helper/markdown/readme/classes/file/simple/show.rb
313
- File.setgid?("show.rb"): false
314
- File.setuid?("show.rb"): false
315
- File.size("show.rb"): 95
316
- File.socket?("show.rb"): false
317
- File.symlink?("show.rb"): false
318
- File.writable?("show.rb"): true
303
+ File (message='Gem file'):
304
+ File.absolute_path("debug_helper.rb"): C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/debug_helper-2.0.0/lib/debug_helper.rb
305
+ File.atime("debug_helper.rb"): 2019-01-25 15:43:42.740298400 -06:00
306
+ File.ctime("debug_helper.rb"): 2019-01-25 15:43:42.740298400 -06:00
307
+ File.executable?("debug_helper.rb"): false
308
+ File.exist?("debug_helper.rb"): true
309
+ File.ftype("debug_helper.rb"): file
310
+ File.mtime("debug_helper.rb"): 2019-01-25 15:43:42.741296200 -06:00
311
+ File.path("debug_helper.rb"): debug_helper.rb
312
+ File.pipe?("debug_helper.rb"): false
313
+ File.readable?("debug_helper.rb"): true
314
+ File.realpath("debug_helper.rb"): C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/debug_helper-2.0.0/lib/debug_helper.rb
315
+ File.setgid?("debug_helper.rb"): false
316
+ File.setuid?("debug_helper.rb"): false
317
+ File.size("debug_helper.rb"): 3701
318
+ File.socket?("debug_helper.rb"): false
319
+ File.symlink?("debug_helper.rb"): false
320
+ File.writable?("debug_helper.rb"): true
319
321
  ```
320
322
  ### Hash
321
323
 
@@ -346,21 +348,21 @@ Hash (message='My simple hash'):
346
348
  Symbol#to_s: a
347
349
  Symbol#size: 1
348
350
  Symbol#encoding: !ruby/encoding US-ASCII
349
- Value: Fixnum 0
351
+ Value: Integer 0
350
352
  Pair 1:
351
353
  Key:
352
354
  Symbol:
353
355
  Symbol#to_s: b
354
356
  Symbol#size: 1
355
357
  Symbol#encoding: !ruby/encoding US-ASCII
356
- Value: Fixnum 1
358
+ Value: Integer 1
357
359
  Pair 2:
358
360
  Key:
359
361
  Symbol:
360
362
  Symbol#to_s: c
361
363
  Symbol#size: 1
362
364
  Symbol#encoding: !ruby/encoding US-ASCII
363
- Value: Fixnum 2
365
+ Value: Integer 2
364
366
  ```
365
367
 
366
368
  #### Mixed Hash
@@ -394,7 +396,7 @@ Hash (message='My mixed hash'):
394
396
  Symbol#to_s: a
395
397
  Symbol#size: 1
396
398
  Symbol#encoding: !ruby/encoding US-ASCII
397
- Value: Fixnum 0
399
+ Value: Integer 0
398
400
  Pair 1:
399
401
  Key:
400
402
  Symbol:
@@ -468,14 +470,14 @@ Hash (message='My nested hash'):
468
470
  Symbol#to_s: b
469
471
  Symbol#size: 1
470
472
  Symbol#encoding: !ruby/encoding US-ASCII
471
- Value: Fixnum 0
473
+ Value: Integer 0
472
474
  Pair 1:
473
475
  Key:
474
476
  Symbol:
475
477
  Symbol#to_s: c
476
478
  Symbol#size: 1
477
479
  Symbol#encoding: !ruby/encoding US-ASCII
478
- Value: Fixnum 1
480
+ Value: Integer 1
479
481
  Pair 1:
480
482
  Key:
481
483
  Symbol:
@@ -493,14 +495,14 @@ Hash (message='My nested hash'):
493
495
  Symbol#to_s: e
494
496
  Symbol#size: 1
495
497
  Symbol#encoding: !ruby/encoding US-ASCII
496
- Value: Fixnum 2
498
+ Value: Integer 2
497
499
  Pair 1:
498
500
  Key:
499
501
  Symbol:
500
502
  Symbol#to_s: f
501
503
  Symbol#size: 1
502
504
  Symbol#encoding: !ruby/encoding US-ASCII
503
- Value: Fixnum 3
505
+ Value: Integer 3
504
506
  ```
505
507
 
506
508
  #### Circular Hashes
@@ -666,6 +668,36 @@ MatchData (message='My MatchData with named captures'):
666
668
  - x
667
669
  - y
668
670
  ```
671
+ ### Method
672
+
673
+ #### Simple Method
674
+
675
+ This example shows a simple ```Method```.
676
+
677
+ ```show.rb```:
678
+ ```ruby
679
+ require 'debug_helper'
680
+
681
+ m = method(:puts)
682
+ DebugHelper.show(m, 'My simple Method')
683
+ ```
684
+
685
+ The output shows details of the ```Method```.
686
+
687
+ ```show.yaml```:
688
+ ```yaml
689
+ ---
690
+ Method (message='My simple Method'):
691
+ Method#arity: -1
692
+ Method#inspect: "#<Method: main.puts>"
693
+ Method#name: :puts
694
+ Method#original_name: :puts
695
+ Method#owner: !ruby/module 'Kernel'
696
+ Method#parameters:
697
+ - - :rest
698
+ Method#source_location:
699
+ Method#super_method:
700
+ ```
669
701
  ### OpenStruct
670
702
 
671
703
  #### Simple OpenStruct
@@ -693,21 +725,21 @@ OpenStruct (message='My simple struct'):
693
725
  Symbol#to_s: a
694
726
  Symbol#size: 1
695
727
  Symbol#encoding: !ruby/encoding US-ASCII
696
- Value: Fixnum 0
728
+ Value: Integer 0
697
729
  Member 1:
698
730
  Name:
699
731
  Symbol:
700
732
  Symbol#to_s: b
701
733
  Symbol#size: 1
702
734
  Symbol#encoding: !ruby/encoding US-ASCII
703
- Value: Fixnum 1
735
+ Value: Integer 1
704
736
  Member 2:
705
737
  Name:
706
738
  Symbol:
707
739
  Symbol#to_s: c
708
740
  Symbol#size: 1
709
741
  Symbol#encoding: !ruby/encoding US-ASCII
710
- Value: Fixnum 2
742
+ Value: Integer 2
711
743
  ```
712
744
 
713
745
  #### Mixed OpenStruct
@@ -735,7 +767,7 @@ OpenStruct (message='My mixed open struct'):
735
767
  Symbol#to_s: a
736
768
  Symbol#size: 1
737
769
  Symbol#encoding: !ruby/encoding US-ASCII
738
- Value: Fixnum 0
770
+ Value: Integer 0
739
771
  Member 1:
740
772
  Name:
741
773
  Symbol:
@@ -804,14 +836,14 @@ OpenStruct (message='My nested struct'):
804
836
  Symbol#to_s: b
805
837
  Symbol#size: 1
806
838
  Symbol#encoding: !ruby/encoding US-ASCII
807
- Value: Fixnum 0
839
+ Value: Integer 0
808
840
  Member 1:
809
841
  Name:
810
842
  Symbol:
811
843
  Symbol#to_s: c
812
844
  Symbol#size: 1
813
845
  Symbol#encoding: !ruby/encoding US-ASCII
814
- Value: Fixnum 1
846
+ Value: Integer 1
815
847
  Member 1:
816
848
  Name:
817
849
  Symbol:
@@ -826,14 +858,14 @@ OpenStruct (message='My nested struct'):
826
858
  Symbol#to_s: e
827
859
  Symbol#size: 1
828
860
  Symbol#encoding: !ruby/encoding US-ASCII
829
- Value: Fixnum 2
861
+ Value: Integer 2
830
862
  Member 1:
831
863
  Name:
832
864
  Symbol:
833
865
  Symbol#to_s: f
834
866
  Symbol#size: 1
835
867
  Symbol#encoding: !ruby/encoding US-ASCII
836
- Value: Fixnum 3
868
+ Value: Integer 3
837
869
  ```
838
870
 
839
871
  #### Circular OpenStructs
@@ -1001,9 +1033,9 @@ The output shows details of the set.
1001
1033
  ---
1002
1034
  Set (message='My simple set'):
1003
1035
  Set#size: 3
1004
- Element 0: Fixnum 5
1005
- Element 1: Fixnum 10
1006
- Element 2: Fixnum 15
1036
+ Element 0: Integer 5
1037
+ Element 1: Integer 10
1038
+ Element 2: Integer 15
1007
1039
  ```
1008
1040
 
1009
1041
  #### Mixed Set
@@ -1027,7 +1059,7 @@ The output shows details of the set.
1027
1059
  ---
1028
1060
  Set (message='My mixed set'):
1029
1061
  Set#size: 3
1030
- Element 0: Fixnum 0
1062
+ Element 0: Integer 0
1031
1063
  Element 1:
1032
1064
  String:
1033
1065
  String#to_s: one
@@ -1067,17 +1099,17 @@ The output shows details of the sets.
1067
1099
  ---
1068
1100
  Set (message='My nested sets'):
1069
1101
  Set#size: 3
1070
- Element 0: Fixnum 0
1102
+ Element 0: Integer 0
1071
1103
  Element 1:
1072
1104
  Set:
1073
1105
  Set#size: 2
1074
- Element 0: Fixnum 1
1075
- Element 1: Fixnum 2
1106
+ Element 0: Integer 1
1107
+ Element 1: Integer 2
1076
1108
  Element 2:
1077
1109
  Set:
1078
1110
  Set#size: 2
1079
- Element 0: Fixnum 3
1080
- Element 1: Fixnum 4
1111
+ Element 0: Integer 3
1112
+ Element 1: Integer 4
1081
1113
  ```
1082
1114
 
1083
1115
  #### Circular Sets
@@ -1195,21 +1227,21 @@ MyStruct (message='My simple struct'):
1195
1227
  Symbol#to_s: a
1196
1228
  Symbol#size: 1
1197
1229
  Symbol#encoding: !ruby/encoding US-ASCII
1198
- Value: Fixnum 0
1230
+ Value: Integer 0
1199
1231
  Member 1:
1200
1232
  Name:
1201
1233
  Symbol:
1202
1234
  Symbol#to_s: b
1203
1235
  Symbol#size: 1
1204
1236
  Symbol#encoding: !ruby/encoding US-ASCII
1205
- Value: Fixnum 1
1237
+ Value: Integer 1
1206
1238
  Member 2:
1207
1239
  Name:
1208
1240
  Symbol:
1209
1241
  Symbol#to_s: c
1210
1242
  Symbol#size: 1
1211
1243
  Symbol#encoding: !ruby/encoding US-ASCII
1212
- Value: Fixnum 2
1244
+ Value: Integer 2
1213
1245
  ```
1214
1246
 
1215
1247
  #### Mixed Struct
@@ -1238,7 +1270,7 @@ MyStruct (message='My mixed struct'):
1238
1270
  Symbol#to_s: a
1239
1271
  Symbol#size: 1
1240
1272
  Symbol#encoding: !ruby/encoding US-ASCII
1241
- Value: Fixnum 0
1273
+ Value: Integer 0
1242
1274
  Member 1:
1243
1275
  Name:
1244
1276
  Symbol:
@@ -1303,14 +1335,14 @@ MyStruct_0 (message='My nested struct'):
1303
1335
  Symbol#to_s: c
1304
1336
  Symbol#size: 1
1305
1337
  Symbol#encoding: !ruby/encoding US-ASCII
1306
- Value: Fixnum 2
1338
+ Value: Integer 2
1307
1339
  Member 1:
1308
1340
  Name:
1309
1341
  Symbol:
1310
1342
  Symbol#to_s: d
1311
1343
  Symbol#size: 1
1312
1344
  Symbol#encoding: !ruby/encoding US-ASCII
1313
- Value: Fixnum 3
1345
+ Value: Integer 3
1314
1346
  Member 1:
1315
1347
  Name:
1316
1348
  Symbol:
@@ -1326,14 +1358,14 @@ MyStruct_0 (message='My nested struct'):
1326
1358
  Symbol#to_s: c
1327
1359
  Symbol#size: 1
1328
1360
  Symbol#encoding: !ruby/encoding US-ASCII
1329
- Value: Fixnum 4
1361
+ Value: Integer 4
1330
1362
  Member 1:
1331
1363
  Name:
1332
1364
  Symbol:
1333
1365
  Symbol#to_s: d
1334
1366
  Symbol#size: 1
1335
1367
  Symbol#encoding: !ruby/encoding US-ASCII
1336
- Value: Fixnum 5
1368
+ Value: Integer 5
1337
1369
  ```
1338
1370
 
1339
1371
  #### Circular Structs
@@ -1384,28 +1416,28 @@ MyStruct (message='My circular struct'):
1384
1416
  Symbol#to_s: b
1385
1417
  Symbol#size: 1
1386
1418
  Symbol#encoding: !ruby/encoding US-ASCII
1387
- Value: Fixnum 4
1419
+ Value: Integer 4
1388
1420
  Member 2:
1389
1421
  Name:
1390
1422
  Symbol:
1391
1423
  Symbol#to_s: c
1392
1424
  Symbol#size: 1
1393
1425
  Symbol#encoding: !ruby/encoding US-ASCII
1394
- Value: Fixnum 5
1426
+ Value: Integer 5
1395
1427
  Member 1:
1396
1428
  Name:
1397
1429
  Symbol:
1398
1430
  Symbol#to_s: b
1399
1431
  Symbol#size: 1
1400
1432
  Symbol#encoding: !ruby/encoding US-ASCII
1401
- Value: Fixnum 1
1433
+ Value: Integer 1
1402
1434
  Member 2:
1403
1435
  Name:
1404
1436
  Symbol:
1405
1437
  Symbol#to_s: c
1406
1438
  Symbol#size: 1
1407
1439
  Symbol#encoding: !ruby/encoding US-ASCII
1408
- Value: Fixnum 2
1440
+ Value: Integer 2
1409
1441
  ```
1410
1442
  ### Symbol
1411
1443
 
@@ -1455,7 +1487,6 @@ The output shows details of the object.
1455
1487
  ```show.yaml```:
1456
1488
  ```yaml
1457
1489
  --- MyClass (message='My class') My class inspection
1458
- ...
1459
1490
  ```
1460
1491
  ### Custom
1461
1492
 
@@ -1745,65 +1776,65 @@ The output shows output for various depths.
1745
1776
  ---
1746
1777
  Array (message='Show depth 1'):
1747
1778
  Array#size: 2
1748
- Element 0: Fixnum 0
1779
+ Element 0: Integer 0
1749
1780
  Element 1: Array [1, [2, [3, [4]]]]
1750
1781
  ---
1751
1782
  Array (message='Show depth 2'):
1752
1783
  Array#size: 2
1753
- Element 0: Fixnum 0
1784
+ Element 0: Integer 0
1754
1785
  Element 1:
1755
1786
  Array:
1756
1787
  Array#size: 2
1757
- Element 0: Fixnum 1
1788
+ Element 0: Integer 1
1758
1789
  Element 1: Array [2, [3, [4]]]
1759
1790
  ---
1760
1791
  Array (message='Show depth 3'):
1761
1792
  Array#size: 2
1762
- Element 0: Fixnum 0
1793
+ Element 0: Integer 0
1763
1794
  Element 1:
1764
1795
  Array:
1765
1796
  Array#size: 2
1766
- Element 0: Fixnum 1
1797
+ Element 0: Integer 1
1767
1798
  Element 1:
1768
1799
  Array:
1769
1800
  Array#size: 2
1770
- Element 0: Fixnum 2
1801
+ Element 0: Integer 2
1771
1802
  Element 1: Array [3, [4]]
1772
1803
  ---
1773
1804
  Array (message='Show depth 4'):
1774
1805
  Array#size: 2
1775
- Element 0: Fixnum 0
1806
+ Element 0: Integer 0
1776
1807
  Element 1:
1777
1808
  Array:
1778
1809
  Array#size: 2
1779
- Element 0: Fixnum 1
1810
+ Element 0: Integer 1
1780
1811
  Element 1:
1781
1812
  Array:
1782
1813
  Array#size: 2
1783
- Element 0: Fixnum 2
1814
+ Element 0: Integer 2
1784
1815
  Element 1:
1785
1816
  Array:
1786
1817
  Array#size: 2
1787
- Element 0: Fixnum 3
1818
+ Element 0: Integer 3
1788
1819
  Element 1: Array [4]
1789
1820
  ---
1790
1821
  Array (message='Show depth 5'):
1791
1822
  Array#size: 2
1792
- Element 0: Fixnum 0
1823
+ Element 0: Integer 0
1793
1824
  Element 1:
1794
1825
  Array:
1795
1826
  Array#size: 2
1796
- Element 0: Fixnum 1
1827
+ Element 0: Integer 1
1797
1828
  Element 1:
1798
1829
  Array:
1799
1830
  Array#size: 2
1800
- Element 0: Fixnum 2
1831
+ Element 0: Integer 2
1801
1832
  Element 1:
1802
1833
  Array:
1803
1834
  Array#size: 2
1804
- Element 0: Fixnum 3
1835
+ Element 0: Integer 3
1805
1836
  Element 1:
1806
1837
  Array:
1807
1838
  Array#size: 1
1808
- Element 0: Fixnum 4
1839
+ Element 0: Integer 4
1809
1840
  ```