diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-04-16 09:54:50 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-04-16 09:54:50 -0500 |
commit | 2a5b6f7d3dc3a2afdf5efb254720bd1b1fafcc4a (patch) | |
tree | 99b2bb3b96e7ba6b77317359b32de7522b615c28 /lib/Bread/Board/Declare/Meta | |
parent | 4e893b484f3b307995dae8ba66163cadb44a8a18 (diff) | |
download | bread-board-declare-2a5b6f7d3dc3a2afdf5efb254720bd1b1fafcc4a.tar.gz bread-board-declare-2a5b6f7d3dc3a2afdf5efb254720bd1b1fafcc4a.zip |
allow explicitly not creating a type mapping for certain services
Diffstat (limited to 'lib/Bread/Board/Declare/Meta')
-rw-r--r-- | lib/Bread/Board/Declare/Meta/Role/Attribute.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Bread/Board/Declare/Meta/Role/Attribute.pm b/lib/Bread/Board/Declare/Meta/Role/Attribute.pm index f6584ae..83eeeaa 100644 --- a/lib/Bread/Board/Declare/Meta/Role/Attribute.pm +++ b/lib/Bread/Board/Declare/Meta/Role/Attribute.pm @@ -108,6 +108,18 @@ has associated_service => ( predicate => 'has_associated_service', ); +=attr typemap + +Whether or not to create a type mapping for this service. Defaults to true. + +=cut + +has typemap => ( + is => 'rw', + isa => 'Bool', + default => 1, +); + after attach_to_class => sub { my $self = shift; |