MooseX::Traits::Attribute::Chained - Create method chaining attributes


MooseX-ChainedAccessors documentation Contained in the MooseX-ChainedAccessors distribution.

Index


Code Index:

NAME

Top

MooseX::Traits::Attribute::Chained - Create method chaining attributes

VERSION

Top

version 0.02

SYNOPSIS

Top

    has => 'debug' => (
        traits => [ 'Chained' ],
        is => 'rw',
        isa => 'Bool',
    );

DESCRIPTION

Top

Modifies the Accessor Metaclass to use MooseX::ChainedAccessors::Accessor

AUTHORS

Top

COPYRIGHT AND LICENSE

Top


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__