本月博客排行
-
第1名
kaizi1992 -
第2名
wy_19921005 -
第3名
arpenker - hanbaohong
- jh108020
- silverend
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
青否云后端云 - wy_19921005
- benladeng5225
- vipbooks
- kaizi1992
- e_e
- arpenker
- tanling8334
- javashop
- sam123456gz
- zysnba
- fantaxy025025
- xiangjie88
- wallimn
- lemonhandsome
- ganxueyun
- Xeden
- zhanjia
- wangchen.ily
- xyuma
- jh108020
- johnsmith9th
- zxq_2017
- jbosscn
- forestqqqq
- ajinn
- daizj
- xpenxpen
- 喧嚣求静
- silverend
- kingwell.leng
- kristy_yy
- lchb139128
- jveqi
- lzyfn123
- java-007
- sunj
- yeluowuhen
- lerf
- xiaoxinye
- flashsing123
- chenqisdfx
- bosschen
- zhangjijun
- lyndon.lin
- sunnylocus
- paulwong
- lyj86
最新文章列表
#Ruby# Introspect (2)
3. Looking at Classes
superclass => get the parent of any particular class
ancestors => get both superclasses and mixin modules
在Ruby1.9中,任何未指定的class都继承自Object,而Object继承自BasicObject,B ...
#Ruby# Introspect (1)
Introspect,内省,是指从程序自身出发,审视程序各方面的能力。这个过程又称为Reflection,反射。
孔子曰,吾日三省吾身。于人于程序,内省都是非常重要的。
1. Looking at objects
ObjectSpace.each_object([module]) {|obj| ... } -> fixnum
ObjectSpace.ea ...