BlankSlate < Object
| Use Case | Command | Description |
|---|---|---|
| Create a dynamic proxy class | class MyProxy < BlankSlate |
Use BlankSlate as base class to avoid method name conflicts when using method_missing. |
| Hide a method from a BlankSlate subclass | BlankSlate.hide :method_name |
Prevent a method from being available in the blank slate, allowing it to be handled by method_missing. |
| Reveal a hidden method | BlankSlate.reveal :method_name |
Restore a previously hidden method to the blank slate. |
| Find hidden methods | BlankSlate.find_hidden_method |
List all methods that have been hidden from the blank slate. |
BlankSlate provides an abstract base class with no predefined methods (except for __send__ and __id__). BlankSlate is useful as a base class when writing classes that depend upon method_missing (e.g. dynamic proxies).
find_hidden_methodhiderevealGenerated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 17:50 @216.73.216.199
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format