自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除