[Dbix-class] Re: Class::Accessor::Grouped - how to use it?
q
quarky at quantentunnel.de
Mon Nov 10 15:38:38 GMT 2008
Hi,
that was the bit that was missing for me while chewing on the docs. I am
sometimes a bit slow on grasping these concepts. Anyway that was quite
helpful.
Thanks wolfgang
> The main idea is that you can separate attributes into
> groups, where each group has a similar set of behaviour required to
> happen on get/set action. In OO terms, these are "attribute
> metaclasses". Defining a group "foo" implies that the class will
> implement a method "get_foo" and a method "set_foo", which will
> encapsulate the group-specific behaviours. Each time a property in the
> "foo" group is accessed, the "get_foo" method will be called with the
> property name, and so on.
More information about the DBIx-Class
mailing list