Sha256: 676bea09c4af092f7aa4cae59dc6c46ab484f17c47d7e93ae257d1f06f935024
Contents?: true
Size: 442 Bytes
Versions: 2
Compression:
Stored size: 442 Bytes
Contents
#include <ruby.h> static const rb_data_type_t *type; static VALUE name_err_receiver(VALUE self) { VALUE *ptr, mesg = rb_attr_get(self, rb_intern("mesg")); TypedData_Get_Struct(mesg, VALUE, type, ptr); return ptr[1]; } void Init_method_receiver() { VALUE err_mesg = rb_funcall(rb_cNameErrorMesg, '!', 3, Qnil, Qnil, Qnil); type = RTYPEDDATA(err_mesg)->type; rb_define_method(rb_eNameError, "receiver", name_err_receiver, 0); }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
did_you_mean-0.10.0-java | ext/did_you_mean/method_receiver.c |
did_you_mean-0.10.0 | ext/did_you_mean/method_receiver.c |