Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Binding#receiver
binding.receiver → object
proc.c
View on GitHub ↗
static VALUE
bind_receiver(VALUE bindval)
{
const rb_binding_t *bind;
GetBindingPtr(bindval, bind);
return vm_block_self(&bind->block);
}
Returns the bound receiver of the binding object.
See also
#local_variable_set
#source_location
#local_variables
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0