attr_writer(*args)
public
Creates an accessor method to allow assignment to the attribute
symbol.id2name. String arguments are
converted to symbols.
Show source
static VALUE
rb_mod_attr_writer(int argc, VALUE *argv, VALUE klass)
{
int i;
for (i=0; i<argc; i++) {
rb_attr(klass, id_for_attr(klass, argv[i]), FALSE, TRUE, TRUE);
}
return Qnil;
}