Sha256: b006cfd0564b43d0a5acf634412c0bdca3971afa5d23db99472215c4f121c1c6
Contents?: true
Size: 570 Bytes
Versions: 2
Compression:
Stored size: 570 Bytes
Contents
#### Instance Methods This example shows a custom handler that explicates via instance methods. Here's a class ```Foo``` that has some instance methods: @[ruby](foo.rb) Here's its custom debug handler class ```FooHandler```. The array returned by method ```calls_for_instance``` tells the base class ```Handler``` which methods to call for the explication, and what arguments to pass, if any. @[ruby](foo_handler.rb) Here's a program that uses the custom handler. @[ruby](show.rb) The output shows details of the object. @[yaml](show.yaml)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
debug_helper-2.1.0 | markdown/readme/classes/custom/instance/template.md |
debug_helper-2.0.0 | markdown/readme/classes/custom/instance/template.md |