summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
-rw-r--r--struct.c1
1 files changed, 1 insertions, 0 deletions
@@ -324,6 +324,7 @@ static void
define_aref_method(VALUE nstr, VALUE name, VALUE off)
{
const rb_iseq_t *iseq = rb_method_for_self_aref(name, off, &struct_aref_builtin);
rb_add_method_iseq(nstr, SYM2ID(name), iseq, NULL, METHOD_VISI_PUBLIC);
}