Ruby also includes another handy DSL mechanism: the alias_method class method.
Ruby还包括另外一个方便的DSL机制:alias_method类方法。
这是另一个类方法。
This is usually a class and some method of it.
这段代码通常是某个类的某个方法。
Once you add a new controller class or method, it becomes automatically available.
在添加新控制器类或方法之后,它们就自动变为可用的了。
I decided to create a class method that would encapsulate the above behavior.
因此我决定创建一个类方法来封装上面的行为。
The stub class contains method signatures of the remote object.
存根类包含远程对象的方法签名。
Also add a class and an attribute and a method within the class.
再添加一个类和该类中的一个属性和方法。
A plus sign (+) denotes a class or static method.
正号(+)表明一个类或静态方法。
The event handling method of the inner class is shown in Listing 2.
内部类的事件处理方法如清单2 所示。
Package: the package where the class and method invocation, in context, belong to.
包:类和方法调用上下文属于的包。
Listing 11 is an example of accessing a private method in a class.
清单11展示了对类的私有方法的访问。
Class: the class where the method invocation, in context, belong to.
类:方法调用上下文所属的类。
Object, class file, and method names.
对象、类文件,和方法名称。
First, there is no main method or class definition, just some simple code.
首先,没有main方法或者类定义,只有一些简单的代码。
This class contains our main method.
这个类包含我们的main方法。
The logging() method in your class will be called for each log event.
这样,每个日志事件都可以调用这个类的logging()方法。
Run unit tests within any method, class, namespace, project or solution with a single-click.
单键运行方法、类、命名空间、项目和解决方案中的单元测试。
Take, for example, the main method in the class in Listing 8.
我们以清单8中那个类的main方法为例。
Notice, I am calling a custom method on the NorthwindDataContext class...
注意,我调用了NorthwindDataContext类的一个自定义方法。
The base class defines a method called load .
基类定义了名为load的方法。
Ruby refers to these method invocations at the class level as macros.
Ruby在类层次上将这些方法调用引用为宏。
The methods keyword allows you to select method trace by class, method name, or both.
methods关键字允许按照类、方法名或这两者选择要跟踪的方法。
Calls the super class init method.
调用超类的init方法。
If __call fails, the parent class method is invoked, and so on.
如果__ call失败,就调用父类方法,依此类推。
This USES a search method on the Story class.
代码对Story类使用了搜索方法。
To do this, call the corresponding method in the Model class.
为此,可调用model类中相应的方法。
The method returns a TableViewCell class instance.
该方法返回一个TableViewCell类实例。
The backslash is actually a method of the class scala.xml.Elem.
反斜杠符号实际上是 scala.xml.Elem 类的一个方法。
Otherwise, the magic method __call is invoked on the class if that method is present.
如果没有,那么就调用类上的魔法方法__ call(如果这个方法存在的话)。
An action's operation is the method of the target class.
一个Action的操作是目标类的方法。
应用推荐