- # /home/mmcleric/git/foo-app/lib/Foo/Service.pm
- package Foo::Service;
- use parent qw(Ubic::Service::Plack);
- sub new {
- my $class = shift;
- my $module_path = $INC{"Foo/Service.pm"};
- my $path = ...; # more code to calculate the real path
- my $self = $class->SUPER::new(
- ...
- );
- }
- return __PACKAGE__->new;