added some documentation of DispatchNode
[catagits/Web-Simple.git] / lib / Web / Simple / DispatchNode.pm
CommitLineData
4ed4fb42 1package Web::Simple::DispatchNode;
2
3use Moo;
4
5extends 'Web::Dispatch::Node';
6
7has _app_object => (is => 'ro', init_arg => 'app_object', required => 1);
8
67a6b9da 9# this ensures that the dispatchers get called as methods of the app itself
4ed4fb42 10around _curry => sub {
11 my ($orig, $self) = (shift, shift);
445b3ea0 12 $self->$orig($self->_app_object, @_);
4ed4fb42 13};
14
151;