Generator function

R6 class representing a dynamic attribute generator