Ruby: rb_block Struct Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Data Fields
rb_block Struct Reference

`#include <vm_core.h>`

## Data Fields
union {
struct rb_captured_block captured
VALUE symbol
VALUE proc
} | as
enum rb_block_type | type

## Detailed Description

Definition at line 760 of file vm_core.h.

## Field Documentation

## ◆

union { ... } rb_block::as

Referenced by rb_block_to_s(), rb_proc_get_iseq(), rb_vm_block_copy(), rb_vm_block_ep_update(), and rb_vm_make_binding().

## ◆ captured

struct rb_captured_block rb_block::captured

Definition at line 762 of file vm_core.h.

Referenced by rb_block_to_s(), rb_proc_get_iseq(), rb_vm_block_copy(), rb_vm_block_ep_update(), and rb_vm_make_binding().

## ◆ proc

VALUE rb_block::proc

Definition at line 764 of file vm_core.h.

Referenced by rb_block_arity(), rb_block_pair_yield_optimizable(), rb_block_to_s(), rb_hash_proc(), rb_proc_get_iseq(), rb_sym_to_proc(), rb_vm_block_copy(), rb_vm_invoke_bmethod(), rb_vm_invoke_proc(), and rb_vm_invoke_proc_with_self().

## ◆ symbol

VALUE rb_block::symbol

Definition at line 763 of file vm_core.h.

Referenced by rb_block_to_s(), and rb_vm_block_copy().

## ◆ type

enum rb_block_type rb_block::type

Definition at line 766 of file vm_core.h.

Referenced by rb_proc_isolate_bang(), and rb_proc_ractor_make_shareable().

The documentation for this struct was generated from the following file:

- vm_core.h