Ruby 简明教程
Ruby - Associated Tools
Standard Ruby Tools
标准 Ruby 发行版包含与解释器和标准库一起的有用工具 −
The standard Ruby distribution contains useful tools along with the interpreter and standard libraries −
这些工具可以帮助你调试和改进 Ruby 程序,而无需花费太多精力。本教程将为你非常好的开始使用这些工具。
These tools help you debug and improve your Ruby programs without spending much effort. This tutorial will give you a very good start with these tools.
-
RubyGems − RubyGems is a package utility for Ruby, which installs Ruby software packages and keeps them up-to-date.
-
Ruby Debugger − To help deal with bugs, the standard distribution of Ruby includes a debugger. This is very similar to gdb utility, which can be used to debug complex programs.
-
Interactive Ruby (irb) − irb (Interactive Ruby) was developed by Keiju Ishitsuka. It allows you to enter commands at the prompt and have the interpreter respond as if you were executing a program. irb is useful to experiment with or to explore Ruby.
-
Ruby Profiler − Ruby profiler helps you to improve the performance of a slow program by finding the bottleneck.
Additional Ruby Tools
有其他一些不随 Ruby 标准发行版捆绑提供的有用工具。但是,你需要自己安装它们。
There are other useful tools that don’t come bundled with the Ruby standard distribution. However, you do need to install them yourself.
-
eRuby: Embeded Ruby − eRuby stands for embedded Ruby. It’s a tool that embeds fragments of Ruby code in other files, such as HTML files similar to ASP, JSP and PHP.
-
ri: Ruby Interactive Reference − When you have a question about the behavior of a certain method, you can invoke ri to read the brief explanation of the method.
有关 Ruby 工具和资源的更多信息,请参阅 Ruby Useful Resources 。
For more information on Ruby tool and resources, have a look at Ruby Useful Resources.