Suppress uninitialized instance variable warnings
This commit is contained in:
parent
ad38f02645
commit
2a8be8ec33
@ -692,7 +692,7 @@ static VALUE cState_aref(VALUE self, VALUE name)
|
||||
if (RTEST(rb_funcall(self, i_respond_to_p, 1, name))) {
|
||||
return rb_funcall(self, i_send, 1, name);
|
||||
} else {
|
||||
return rb_ivar_get(self, rb_intern_str(rb_str_concat(rb_str_new2("@"), name)));
|
||||
return rb_attr_get(self, rb_intern_str(rb_str_concat(rb_str_new2("@"), name)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user