Revision history for DBIx::Class
+ - Update cookbook example for overriding new
+
0.07005 2007-01-10 18:36:00
- fixup changes file
- remove erroneous .orig files - oops
C<next::method>.
sub new {
- my ( $class, $attrs ) = @_;
+ my ( $self, $attrs ) = @_;
$attrs->{foo} = 'bar' unless defined $attrs->{foo};
- $class->next::method($attrs);
+ $self->next::method($attrs);
+
+ return $self;
}
For more information about C<next::method>, look in the L<Class::C3>