[b]如何动态的调用方法或对象的属性?
1.动态创建方法:使用method_missing() 、send(:include,modeule_name)、define_method 。
2.动态调用 obj.send(method_name,*args)。[/b]
1.动态创建方法:使用method_missing() 、send(:include,modeule_name)、define_method 。
2.动态调用 obj.send(method_name,*args)。[/b]