Ruby 3.4 リファレンスマニュアル

function rb_define_readonly_variable

[edit]
void rb_define_readonly_variable(const char *name, VALUE *var)