会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Mr-chen
首页
管理
2018年3月11日
3-11 《Ruby元编程》第4章block块 3-12
摘要: 第4章代码块blocks 基础知识 作用域:用代码块携带variables through scopes 通过传递block给instance_eval方法来控制作用域。 把block转换为Proc,lambda这样的可反复调用的对象。4.5 4.12基础 def a_method(a,b) a +
阅读全文
posted @ 2018-03-11 11:46 Mr-chen
阅读(204)
评论(0)
推荐(0)