function val_getter

static VALUE val_getter(ID id, VALUE val)