Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stefan O'Rear
committed
Jul 13, 2010
1 parent
e22978c
commit 60c9436
Showing
2 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
use strict; | ||
use warnings; | ||
use 5.010; | ||
|
||
{ | ||
package Sig::Target; | ||
use Moose; | ||
|
||
has slot => (is => 'ro', isa => 'Maybe[Str]', required => 1); | ||
|
||
__PACKAGE__->meta->make_immutable; | ||
no Moose; | ||
} | ||
|
||
{ | ||
package Sig::Parameter; | ||
use Moose; | ||
|
||
has target => (is => 'ro', isa => 'Sig::Target', required => 1); | ||
|
||
__PACKAGE__->meta->make_immutable; | ||
no Moose; | ||
} | ||
|
||
{ | ||
package Sig; | ||
use Moose; | ||
|
||
has params => (isa => 'ArrayRef[Sig::Parameter]', is => 'ro', required => 1); | ||
|
||
__PACKAGE__->meta->make_immutable; | ||
no Moose; | ||
} | ||
|
||
1; |