diff可以帮助我们创建补丁文件(patch file),后者是我们向很多开放源码软件项目发送代码提交时通常使用的方法。
The diff helps you create a patch file, which is the preferred way of sending code submissions to many open source projects.
这样做的一种方法就是使用开放式回路。
还可以添加方法和数据到已有的类中,因为类是开放式的。
You can also add methods and data to existing Ruby classes because classes are open.
应用推荐