Perish

博客园 首页 联系 订阅 管理

2014年9月17日

摘要: #### instance_eval从名字上看,它的调用者必须是一个实例:class Aenda = A.newa.instance_eval do self #===>a def method1 puts "it's a's instance method, only for a" ... 阅读全文
posted @ 2014-09-17 15:13 ---小青年--- 阅读(204) 评论(0) 推荐(0) 编辑