they will call get_$group($field) on get and set_$group($field, $value)
on set.
+ If you want to mimic Class::Accessor's mk_accessors $group has to be
+ 'simple' to tell Class::Accessor::Grouped to use its own get_simple and
+ set_simple methods.
+
@fieldspec is a list of field/accessor names; if a fieldspec is a scalar
this is used as both field and accessor name, if a listref it is
expected to be of the form [ $accessor, $field ].
Gets the value of the specified component class.
__PACKAGE__->mk_group_accessors('component_class' => 'result_class');
-
+
$self->result_class->method();
-
+
## same as
$self->get_component_class('result_class')->method();
__PACKAGE__->mk_group_accessors('component_class' => 'result_class');
__PACKAGE__->result_class('MyClass');
-
+
$self->result_class->method();
get_super_paths
Matt S. Trout <mst@shadowcatsystems.co.uk> Christopher H. Laco
<claco@chrislaco.com>
+ With contributions from:
+
+ Guillermo Roditi <groditi@cpan.org>
+
LICENSE
You may distribute this code under the same terms as Perl itself.