I have a model and want to declare functions for all attributes on it.
Let's say these are the attributes: [firstName, lastName]
I want to be able to get them with:
person.firstName()
person.lastName()
How do I define methods programmatically from an array of strings?
persona singleton or do you have multiple such objects?