Hi. I'm trying to figure out how a role, when applied to an object, can verify that the object already has a particular attribute and that its conents equal some string. Am I missing something in the cookbook? It is sort of backwards from the usual way that an object requires the role can do something or has an attribute.
I want to cross check when the role gets applied that the role has everything in the object that the methods it supplies needs to work. I suppose I can just verify this when methods run and then throw an error to say the role got applied to the wrong object, but I'd rather throw that from the place that I apply the role. Mark