- 博客(3)
- 收藏
- 关注
A implementation of delegate pattern (2)
[b]Secondly,write a delegator in another way[/b]1.Code a class extends DelegateClass,and set a parameter that you want to use2.Implementing your method initialize ,and donot forget to write super ...
2006-10-30 14:43:49 83
A implementation of delegate pattern (1)
[b]First of all, use SimpleDelegator class[/b]1.first new a class 2.new another class extends SimpleDelegator,and donot forget require "delegate" at top of file3.in this subclass ,super(obj) sho...
2006-10-30 14:38:34 118
Ruby中正则表达式的修饰符(译)
原文出处:http://www.regular-expressions.info/ruby.html在Ruby中使用正则表达式Ruby支持正则表达式作为其一项语言特性。在Ruby中,正则表达式被写作 /模版/修饰符 的形式,这里的"模版"就是正则表达式本身,而"修饰符"则是一系列不同选项字符的标识,另外,"修饰符"部分是可选的。这个语法特点从Perl借鉴而来。Ruby支持如下的...
2006-10-29 21:53:10 183
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人