| MooseX-ChainedAccessors documentation | Contained in the MooseX-ChainedAccessors distribution. |
MooseX::Traits::Attribute::Chained - Create method chaining attributes
version 0.02
has => 'debug' => (
traits => [ 'Chained' ],
is => 'rw',
isa => 'Bool',
);
Modifies the Accessor Metaclass to use MooseX::ChainedAccessors::Accessor
This software is copyright (c) 2011 by Moritz Onken.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| MooseX-ChainedAccessors documentation | Contained in the MooseX-ChainedAccessors distribution. |
# # This file is part of MooseX-ChainedAccessors # # This software is copyright (c) 2011 by Moritz Onken. # # This is free software; you can redistribute it and/or modify it under # the same terms as the Perl 5 programming language system itself. # package MooseX::Traits::Attribute::Chained; BEGIN { $MooseX::Traits::Attribute::Chained::VERSION = '0.02'; } #ABSTRACT: Create method chaining attributes use Moose::Role; use MooseX::ChainedAccessors::Accessor; use MooseX::ChainedAccessors; sub accessor_metaclass { $Moose::VERSION >= 1.9900 ? 'MooseX::ChainedAccessors' : 'MooseX::ChainedAccessors::Accessor' } no Moose::Role; 1;
__END__