Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Ruby には がありmethod_missing、Python には がありgetattrます。Boo は、メソッド呼び出しをインターセプトするために使用できるものを提供していますか?
method_missing
getattr
はい、BooにはIQuackFuがあります。
基本的に、を実装しますIQuackFu。これには3つのメソッドがあります。
IQuackFu
QuackGet
QuackSet
QuackInvoke
これが例です。