return !@{ $c->error };
}
+=head1 NAME
+
+Catalyst::Base - Catalyst Base Class
+
+=head1 SYNOPSIS
+
+See L<Catalyst>
+
+=head1 DESCRIPTION
+
+Catalyst Base Class
+
+=head1 METHODS
+
+=over 4
+
+=item $self->action_namespace($c)
+
+=cut
+
sub action_namespace {
my ( $self, $c ) = @_;
return Catalyst::Utils::class2prefix( ref $self,
|| '';
}
+=item $self->register_actions($c)
+
+=cut
+
sub register_actions {
my ( $self, $c ) = @_;
my $class = ref $self || $self;
# Parse out :Foo(bar) into Foo => bar etc (and arrayify)
- if ( my ( $key, $value ) = ( $attr =~ /^(.*?)(?:\(\s*(.+?)\s*\))?$/ ) ) {
+ if ( my ( $key, $value ) = ( $attr =~ /^(.*?)(?:\(\s*(.+?)\s*\))?$/ ) )
+ {
if ( defined $value ) {
( $value =~ s/^'(.*)'$/$1/ ) || ( $value =~ s/^"(.*)"/$1/ );
return \%attributes;
}
-=head1 NAME
-
-Catalyst::Base - Catalyst Controller Base Class
-
-=head1 SYNOPSIS
-
-
-=head1 DESCRIPTION
-
-
-=head1 METHODS
-
-=over 4
-
=back
=head1 SEE ALSO
return map { $_->getNodeValue } @match;
}
+=item $self->register( $c, $action )
+
+=cut
+
sub register {
my ( $self, $c, $action ) = @_;