In Listing 5, we add methods for setting and accessing data in browser cookies.
清单5中添加了在浏览器cookie中设置和访问数据的方法。
You can also add methods and data to existing Ruby classes because classes are open.
还可以添加方法和数据到已有的类中,因为类是开放式的。
Programmers often need to add methods to classes that are part of the language runtime itself.
开发人员经常有向某一语言内建类中添加方法的需求。
应用推荐