ri > Module::DelegationError

📦 Module::DelegationError < NoMethodError

⚠️ Error generated by delegate when a method is called on nil and allow_nil option is not used.

🚀 Quick Reference

Use CaseCommandDescription
⚠️ Catch delegation errorrescue Module::DelegationErrorHandle the case where a delegate method is called on nil
📦 Create delegate with nil checkdelegate :method, to: :@obj, allow_nil: falseExplicitly disallow nil delegation (default behavior)
✅ Allow nil delegationdelegate :method, to: :@obj, allow_nil: trueSuppress error when nil is the delegate target
Module::DelegationError
📦 Module::DelegationError < NoMethodError 🚀 Quick Reference

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-28 06:16 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format