function val_getter

[edit]
static VALUE val_getter(ID id, VALUE val)