Both attr_reader and attr_writer are not keywords but are actual methods in Ruby (found in the Module class) that take symbols as arguments.
attr _ reader和attr _writer都不是关键词,而是Ruby中的实际方法(在module类中),它们以符号作为参数。
Those module methods then become instance methods of the including class.
这些模块方法会变成包含它们的类的实例方法。
This file also declares the entry point class for the module (line 6).
这个文件还声明模块的入口点类(第6行)。
A module name or location change is conceptually similar to a class name change but must be handled quite differently.
在概念上,模块的名称或位置的改变类似于类名称的改变,但处理方式却完全不同。
The school is testing what it calls an "ethics module" -not an entire class, but a synthesis of the ethics taught in other business classes.
学校正在实验一个“道德模型”——不是在全部的课程里,而是在其他商业课程里面作为商业道德综合理论一部分。
In the classical way when a software module (class, framework,...) need some other module, it initializes and holds a direct reference to it.
在传统方式里,当一个软件模块(类、框架…)需要一些其他模块,他将实现并且保持对该模块的一个直接引用。
Finally, the two lines at the bottom allow you to run the tests within this test class by simply running this module.
最后的两行负责在这个测试类内部运行测试,方法是直接运行该模块即可。
The JAAS configuration file specifies the login module to use for this class.
JAAS配置文件指定这个类使用的登录模块。
This means that the module references and class path of the project that's found are also searched.
这意味着也会搜索所找到的项目的模块引用和类路径。
While deploying, class loading conflicts are resolved by using a different application class loader for each enterprise application module.
在部署阶段,类加载冲突通过对不同的企业应用程序模块使用不同的应用程序类加载器得以解决。
This class handles the attributes for the module and introduces the various class and instance methods.
该类处理模块属性并引入不同的类和实例方法。
One of the reasons why this is usually the case is to do with class leakage across module boundaries.
之所以这样,原因之一是跨越模块边界的类泄漏。
Listing 16 lists the entry point class for the module.
清单16列出模块的入口点类。
The IFX_PAM_CLASS value that is specified is intended to inform the JDBC driver what class (module) has implemented the PAM interface.
指定的 IFX_PAM_CLASS值用来告诉JDBC驱动程序哪个类(模块)实现了PAM接口。
Chapter 14, which discusses database access, has been expanded but does not mention the Class: : DBI module.
第14章讨论了数据库的访问,已经被扩展,但没有涉及Class:DBI模块。
Listing 6 contains a Module: a special class that you use to tell Guice which implementations go with which interfaces.
清单6包含一个Module:一个特殊的类,用于告诉Guice各个接口对应的实现。
In a Python program, you access each class as a Python module.
在python程序中,您将以python模块的形式使用这些类。
In this article we'll use the Class: : DBI CPAN module to manage database tables (more on that in the next section).
在本文中,我们将使用Class:DBICPAN模块来管理数据库的表(下一节将进行详细介绍)。
Configure the Login Module for your application class in your JAAS configuration file.
在JAAS配置文件中为应用程序类配置LoginModule。
To use the IBM Integration Module, you also need these jar files in your class path.
要使用IBMIntegrationModule,您还需要类路径中的以下jar文件。
Perhaps it's a case for duck typing, the principle that it doesn't really matter what an object is, in terms of class and module, but only what it does.
可能这就是ducktyping的一个例子,duck typing所代表的原则是,无论对象属于什么类或者模块,关系都不大,关键在于它做些什么。
Almost all of the modules in Python 2.0's standard library are covered, but the coverage is not aimed at documenting every constant, function, and class inside each module.
本书几乎涵盖了所有Python 2.0的标准库模块,但这种涵盖的目的不是记录每个模块中的每个常数、函数和类。
To develop the address module within the DisplayAddressInfoAction class
要在 DisplayAddressInfoAction 类中开发address模块需要做的是
The client code can specify the default module using the TuscanyRuntime class.
客户机代码可以使用TuscanyRuntime类指定缺省模块。
The above listing is a test class which performs basic tests on the feedparser module.
上述清单是实现feedparser模块基本测试功能的测试类。
Details include the module id, the application's main class, modules which the program provides and modules on which it depends.
详细信息包括模块id,应用程序的主类,程序提供的模块和所依赖的模块。
Such illustrations can also occur right inside of source code, in the docstring of a module, class, or function
这种说明还可以出现在源代码中模块、类或函数的docstring 中
Because we have added the class to the Web application, when we add our module to the server our test class will be available for execution in the server environment.
因为我们已经将类添加到了Web应用程序,所以在将模块添加到服务器时,我们的测试类可以在服务器环境中执行。
Finally, the definition module sets the class attribute to declare that the new elements derive from topicref and are provided by the howto package.
最后,定义模块设置了类属性,以声明新元素是从topicref派生的,并由howto包提供。
A persistence class should best live in a module that the.rpy file imports.
持久性类最好放在.rpy文件所导入的模块中。
应用推荐