Method: KeyError#receiver
- Defined in:
- error.c
#receiver ⇒ Object
Return the receiver associated with this KeyError exception.
2797 2798 2799 2800 2801 2802 2803 2804 2805 |
# File 'error.c', line 2797
static VALUE
key_err_receiver(VALUE self)
{
VALUE recv;
recv = rb_ivar_lookup(self, id_receiver, Qundef);
if (!UNDEF_P(recv)) return recv;
rb_raise(rb_eArgError, "no receiver is available");
}
|