Lines Matching defs:block
425 * DescriptorPool.build(&block)
427 * Invokes the block with a Builder instance as self. All message and enum types
428 * added within the block are committed to the pool atomically, and may refer
430 * Builder#add_enum within the block as appropriate. This is the recommended,
435 VALUE block = rb_block_proc();
436 rb_funcall_with_block(ctx, rb_intern("instance_eval"), 0, NULL, block);
585 * Descriptor.each(&block)
587 * Iterates over fields in this message type, yielding to the block on each one.
622 * Descriptor.each_oneof(&block) => nil
624 * Invokes the given block for each oneof in this message type, passing the
1231 * OneofDescriptor.each(&block) => nil
1233 * Iterates through fields in this oneof, yielding to the block on each one.
1371 * EnumDescriptor.each(&block)
1374 * the block with (key, value) arguments for each one.
1762 * MessageBuilderContext.oneof(name, &block) => nil
1766 * block in the context of that OneofBuilderContext with #instance_eval, and
1787 // Evaluate the block with the builder as argument.
1791 VALUE block = rb_block_proc();
1792 rb_funcall_with_block(ctx, rb_intern("instance_eval"), 0, NULL, block);
2109 * FileBuilderContext.add_message(name, &block)
2111 * Creates a new, empty descriptor with the given name, and invokes the block in
2112 * the context of a MessageBuilderContext on that descriptor. The block can then
2121 VALUE block = rb_block_proc();
2122 rb_funcall_with_block(ctx, rb_intern("instance_eval"), 0, NULL, block);
2129 * FileBuilderContext.add_enum(name, &block)
2132 * block in the context of an EnumBuilderContext on that descriptor. The block
2140 VALUE block = rb_block_proc();
2141 rb_funcall_with_block(ctx, rb_intern("instance_eval"), 0, NULL, block);
2213 * Builder.add_file(name, options = nil, &block)
2216 * the block in the context of a FileBuilderContext on that descriptor. The
2217 * block can then call FileBuilderContext#add_message or
2226 VALUE block;
2235 block = rb_block_proc();
2236 rb_funcall_with_block(ctx, rb_intern("instance_eval"), 0, NULL, block);
2258 * Builder.add_message(name, &block)
2264 * files generated by protoc which don't add messages within "add_file" block.
2276 * Builder.add_enum(name, &block)
2282 * files generated by protoc which don't add enums within "add_file" block.