Ray's playground

 

2010年7月6日

When Trouble Strikes(Chapter 14 of Programming Ruby)

摘要: Ruby comes with a debugger, which is conveniently built into the base system. You canrun the debugger by invoking the interpreter with the -r debug option, along with any otherRuby options and the nam... 阅读全文

posted @ 2010-07-06 20:53 Ray Z 阅读(119) 评论(0) 推荐(0) 编辑

Unit Testing(Chapter 13 of Programming Ruby)

摘要: RomanCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1classRoman2MAX_ROMAN=49993definitialize(value)4ifvalue<=0||value>MAX_ROMAN5fail"Romanvalue... 阅读全文

posted @ 2010-07-06 12:53 Ray Z 阅读(152) 评论(0) 推荐(0) 编辑

导航