The I parameter marks the code block.
i参数标志代码块。
The code block contains the set up work.
代码块中包含设置工作。
A code block is defined as shown below.
对象块定义如下所示。
The consists_of method accepts a code block.
consists _ of方法接受代码块。
As with the previous code block, a pattern emerges.
在以上代码块中,出现了一种模式。
I define adaptor as a code block (delimited by in Groovy).
我将adaptor定义为一个代码块(使用Groovy中的界定)。
So, you can access the process variables from any code block.
因此,你可以从任何代码块访问流程变量。
The code between brackets is called a closure, or code block.
括号中的代码叫做闭包或代码块。
The configuration portion is the final code block in Listing 6.
配置内容包含在清单6中的最后一个代码块。
You pass the before method an optional symbol and a code block.
您向before方法传递一个可选的标志和一个代码块。
For each case, you pass a code block that fires a Squeak method.
针对每种情况,传递一个代码块,它触发一个Squeak方法。
Note the actions enclosed in { } braces, like a normal code block.
注意像普通的代码块那样封装在大括号 { }内的动作。
The symbol determines how often RSpec should execute the code block.
标志确定RSpec执行代码块的频率。
The ampersand identifies the parameter as the holder of a code block.
该符号将参数识别为代码块的持有者。
Ruby calls the code block in braces, passing in a continuation object.
Ruby调用花括号中的代码块,同时传递一个延续对象。
Everywhere a match can be found, an action (code block) can be executed.
每发现一个匹配对象,就会执行一个动作(代码块)。
In Listing 4, I define product as a code block accepting two parameters.
在清单4中,我将product定义为一个代码块,它接受两个参数。
The method takes a string parameter, enclosed in quotes, and a code block.
该方法具有一个使用引号括起来的字符串参数和一个代码块。
In Listing 6, I create a composite code block that composes two functions.
在清单6中,我创建了一个由两个函数组成的composite代码块。
The synchronized keyword lets only one thread enter a code block at a time.
synchronized关键字每次仅允许一个线程进入代码块。
The controller can specify a code block for each type the controller expects.
控制器可以为控制器期望的每个类型指定一个代码块。
We could define the callback function in the same code block, but with a name.
我们可以在同一个代码块中定义回调函数,但是使用一个名称。
Finally, the code block between do and end includes the code for the test case.
最后,do和end之间的代码块包含测试用例的代码。
The first extension that Ruby adds to the simple code block is an argument list.
Ruby添加到这个简单代码块的第一个扩展是一个参数列表。
The additional line exhibits one of my favorite features of Ruby, the code block.
附加的行展现出了Ruby中我最喜欢的特性之一,代码块。
The synchronized statement enbales only one thread to enter a code block at a time.
同步语句一次仅允许一个线程进入代码块。
Blue provides a single mechanism for looping, which is contained within a code block.
Blue提供单一的循环机制,包含于代码块之内。
The next line starts a code block that dictates what happens when each client connects.
下一行开始一个代码块,规定当每个客户端连接时要做的事情。
Consult the next section for the code block that sets each frame when the mouse is down.
参考下一节中的代码块,它会在鼠标按下时设置各帧。
There will be an else code block that will follow this with the initial form code in it.
还有其他代码块在其中跟随初始表单代码。
应用推荐