正如您所见,类方法非常简单。
确保只有一行是父类方法调用。
Make sure that there is only one line that is a super method invocation.
相反,类方法不需要您创建一个示例。
In contrast, class methods do not require you to create an instance.
现在让我们添加形成DSL的类方法。
这也适用于函数,甚至是类方法,如下所示。
The same concept can be used with functions, or even class methods, as shown below.
这是另一个类方法。
因此我决定创建一个类方法来封装上面的行为。
I decided to create a class method that would encapsulate the above behavior.
它是两种基本聚类方法的有机结合。
调用脚本中的helper超类方法。
如果使用新的集合类方法,上面的代码就被简化为。
With the new collection class methods, this has been simplified to.
论文将聚类方法应用于图像识别系统中。
The paper applies the clustering method in image recognition system.
同时也隐藏具有相同签名的所有基类方法。
It also hides all base class methods with the same signature.
另一方面,您也可能想重写某些基类方法。
On the other hand, you may want to override certain base-class methods.
如果__ call失败,就调用父类方法,依此类推。
If __call fails, the parent class method is invoked, and so on.
常用于基因表达数据分析的聚类方法有很多。
There are lots of cluster methods applied to the analysis of gene expression data.
结论线性拟合法是一个有效的有序样品聚类方法。
Conclusion a line fitting method is efficient for ordinal clustering methods.
对磁场处理燃料油的机理分析,大体上有两类方法。
This paper describes the mechanism of treating fuel off in magnetic field.
这是一个图像过滤功能的实现,主要应用的是聚类方法。
This is an image filter functions are realized, the main application is clustering method.
这给互联网信息的管理提供了一种有效的自动聚类方法。
This provides an effective method of the automatic clustering for Internet information management.
在本文中,我们提出了一种新的无需距离函数的聚类方法。
In this paper, we propose a new method for clustering without distance functions.
Ruby还包括另外一个方便的DSL机制:alias_method类方法。
Ruby also includes another handy DSL mechanism: the alias_method class method.
社会科学的研究方法生成两类数据。
The research methods of social science generate two kinds of data.
我们可以在这编写一个表达式来匹配许多类的方法的集合。
We could write an expression here that matched a set of methods, on many classes.
一旦创建好测试类之后,测试方法中要有实际的动作。
Once you have your test class, the real action happens in your test methods.
在添加新控制器类或方法之后,它们就自动变为可用的了。
Once you add a new controller class or method, it becomes automatically available.
随着本文的继续展开,我们将构建这个类的方法。
We will be building up the methods of this class as the article proceeds.
存根类包含远程对象的方法签名。
The stub class contains method signatures of the remote object.
正号(+)表明一个类或静态方法。
包:类和方法调用上下文属于的包。
Package: the package where the class and method invocation, in context, belong to.
增强某个类的方法有多种(请参见参考资料)。
应用推荐