ruby设计模式--代理模式
通过代理模式以客户透明的形式动态的为目标对象加以行为控制
?
bankAccount = BankAccount.newbankAccount.depositproxy = Proxy.new bankAccountproxy.deposit