要开始使用irb,在Windows Command Prompt中只需输入irb,回车便进入irb环境。
比如要列出一个object都具有什么methods,可以这样:
$ irb
irb(main):001:0> puts Object.new.methods.sort
Thursday, March 15, 2007
irb helps you what?
Labels: Command, irb, Ruby Syntax
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment