File: MethodModifiers.pm

package info (click to toggle)
libcatalyst-perl 5.90075-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,712 kB
  • ctags: 1,428
  • sloc: perl: 12,388; makefile: 7
file content (10 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
package TestApp::Controller::Moose::MethodModifiers;
use Moose;
BEGIN { extends qw/TestApp::Controller::Moose/; }

after get_attribute => sub {
    my ($self, $c) = @_;
    $c->response->header( 'X-Catalyst-Test-After' => 'after called' );
};

1;