Sha256: c0754d1f18983549bedcd76c7705c494884e1df4a0f478de8634cd6f99e24583
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
#### Singleton Methods This example shows a custom handler that explicates via singleton methods. Here's a class ```Foo``` that has some singleton methods: @[ruby](foo.rb) Here's its custom debug handler class ```FooHandler```. The array returned in method ```calls_for_class``` tells the base class ```Handler``` which methods to call for the explication. @[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/singleton/template.md |
debug_helper-2.0.0 | markdown/readme/classes/custom/singleton/template.md |