Created
December 9, 2010 20:28
-
-
Save perigrin/735282 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package Wrapper; | |
| use Moose; | |
| use CPAN::Thing; | |
| has cpan_thing => ( | |
| isa => 'CPAN::Thing', | |
| handles => [qw(list of methods)], | |
| default => sub { my $self = shift; CPAN::Thing->new( arg1 => $self->arg1, arg2 => $self->arg2 ) }, | |
| ); | |
| has arg1 ( ... ); | |
| has arg2 ( ... ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment