Revision history for Perl extension MooseX-AttributeHelpers
+0.20 Thu June 25, 2009
+ - MXAH is moving into core. This module will be deprecated when
+ that finally happens.
+ - Remove register_implementation methods from the traits because
+ we don't want to conflict with cored AttributeHelpers. You'll need to
+ specify the full package name for traits --
+ MooseX::AttributeHelpers::Trait::Counter instead of Counter
- New provided method for hashs: elements (Returns the key, value
- pairs in the hash as a flattened list)
+ pairs in the hash as a flattened list) (plu)
0.19 Sun June 14, 2009
- No functional changes from 0.18_01
no Moose::Role;
-# register the alias ...
-package # hide me from search.cpan.org
- Moose::Meta::Attribute::Custom::Trait::Bool;
-sub register_implementation { 'MooseX::AttributeHelpers::Trait::Bool' }
-
1;
=pod
no Moose::Role;
-# register the alias ...
-package # hide me from search.cpan.org
- Moose::Meta::Attribute::Custom::Trait::Collection::Array;
-sub register_implementation {
- 'MooseX::AttributeHelpers::Trait::Collection::Array'
-}
-
-
1;
__END__
no Moose::Role;
no Moose::Util::TypeConstraints;
-# register the alias ...
-package # hide me from search.cpan.org
- Moose::Meta::Attribute::Custom::Trait::Collection::Bag;
-sub register_implementation {
- 'MooseX::AttributeHelpers::Trait::Collection::Bag'
-}
-
1;
__END__
no Moose::Role;
-# register the alias ...
-package # hide me from search.cpan.org
- Moose::Meta::Attribute::Custom::Trait::Collection::Hash;
-sub register_implementation {
- 'MooseX::AttributeHelpers::Trait::Collection::Hash'
-}
-
-
1;
__END__
no Moose::Role;
-# register the alias ...
-package # hide me from search.cpan.org
- Moose::Meta::Attribute::Custom::Trait::Collection::ImmutableHash;
-sub register_implementation {
- 'MooseX::AttributeHelpers::Trait::Collection::ImmutableHash'
-}
-
-
1;
__END__
no Moose::Role;
-# register the alias ...
-package # hide me from search.cpan.org
- Moose::Meta::Attribute::Custom::Trait::Collection::List;
-sub register_implementation {
- 'MooseX::AttributeHelpers::Trait::Collection::List'
-}
-
-
1;
__END__
no Moose::Role;
-# register the alias ...
-package # hide me from search.cpan.org
- Moose::Meta::Attribute::Custom::Trait::Counter;
-sub register_implementation { 'MooseX::AttributeHelpers::Trait::Counter' }
-
1;
__END__
no Moose::Role;
-# register the alias ...
-package # hide me from search.cpan.org
- Moose::Meta::Attribute::Custom::Trait::Number;
-sub register_implementation { 'MooseX::AttributeHelpers::Trait::Number' }
-
1;
=pod
no Moose::Role;
-# register the alias ...
-package # hide me from search.cpan.org
- Moose::Meta::Attribute::Custom::Trait::String;
-sub register_implementation { 'MooseX::AttributeHelpers::Trait::String' }
-
1;
__END__
use Moose;
has 'counter' => (
- traits => [qw/Counter/],
+ traits => [qw/MooseX::AttributeHelpers::Trait::Counter/],
is => 'ro',
isa => 'Int',
default => sub { 0 },
use Moose;
has 'options' => (
- traits => [qw/Collection::Array/],
+ traits => [qw/MooseX::AttributeHelpers::Trait::Collection::Array/],
is => 'ro',
isa => 'ArrayRef[Int]',
default => sub { [] },
use MooseX::AttributeHelpers;
has 'options' => (
- traits => [qw/Collection::Hash/],
+ traits => [qw/MooseX::AttributeHelpers::Trait::Collection::Hash/],
is => 'ro',
isa => 'HashRef[Str]',
default => sub { {} },
use Moose;
has 'integer' => (
- traits => [qw/Number/],
+ traits => [qw/MooseX::AttributeHelpers::Trait::Number/],
is => 'ro',
isa => 'Int',
default => sub { 5 },
use Moose;
has '_options' => (
- traits => [qw/Collection::List/],
+ traits => [qw/MooseX::AttributeHelpers::Trait::Collection::List/],
is => 'ro',
isa => 'ArrayRef[Int]',
init_arg => 'options',
use MooseX::AttributeHelpers;
has 'word_histogram' => (
- traits => [qw/Collection::Bag/],
+ traits => [qw/MooseX::AttributeHelpers::Trait::Collection::Bag/],
is => 'ro',
provides => {
'add' => 'add_word',
use Moose;
has 'string' => (
- traits => [qw/String/],
+ traits => [qw/MooseX::AttributeHelpers::Trait::String/],
is => 'rw',
isa => 'Str',
default => sub { '' },
package Room;
use Moose;
has 'is_lit' => (
- traits => ['Bool'],
+ traits => ['MooseX::AttributeHelpers::Trait::Bool'],
is => 'rw',
isa => 'Bool',
default => sub { 0 },