|
|
|
|
|
by bct
5194 days ago
|
|
I'll try to think of examples and come back to it tomorrow. For now: One thing that I'm still not clear on is when to wrap .get/.set. Should I always write my own getters/setters and only use .get/.set internally? Right now I'm only wrapping them when the attributes need special processing, which leads to an inconsistent-feeling API. |
|
For run-of-the-mill attribute massaging, I'd just define a new method on the model specifically for that purpose. eg.