blib/
inc/
pm_to_blib
-MooseX-IsDefaults-*
+MooseX-HasDefaults-*
use inc::Module::Install;
-name 'MooseX-IsDefaults';
-all_from 'lib/MooseX/IsDefaults.pm';
+name 'MooseX-HasDefaults';
+all_from 'lib/MooseX/HasDefaults.pm';
githubmeta;
requires 'Moose';
-package MooseX::IsDefaults::Meta::IsRO;
+package MooseX::HasDefaults::Meta::IsRO;
use Moose::Role;
# This does not actually do anything but lie less in the attribute's metadata.
-package MooseX::IsDefaults::Meta::IsRW;
+package MooseX::HasDefaults::Meta::IsRW;
use Moose::Role;
# This does not actually do anything but lie less in the attribute's metadata.
-package MooseX::IsDefaults::RO;
+package MooseX::HasDefaults::RO;
use Moose ();
use Moose::Exporter;
use Moose::Util::MetaRole;
-use MooseX::IsDefaults::Meta::IsRO;
+use MooseX::HasDefaults::Meta::IsRO;
Moose::Exporter->setup_import_methods(also => 'Moose');
Moose::Util::MetaRole::apply_metaclass_roles(
for_class => $options{for_class},
- attribute_metaclass_roles => ['MooseX::IsDefaults::Meta::IsRO'],
+ attribute_metaclass_roles => ['MooseX::HasDefaults::Meta::IsRO'],
);
return $options{for_class}->meta;
-package MooseX::IsDefaults::RW;
+package MooseX::HasDefaults::RW;
use Moose ();
use Moose::Exporter;
use Moose::Util::MetaRole;
-use MooseX::IsDefaults::Meta::IsRW;
+use MooseX::HasDefaults::Meta::IsRW;
Moose::Exporter->setup_import_methods(also => 'Moose');
Moose::Util::MetaRole::apply_metaclass_roles(
for_class => $options{for_class},
- attribute_metaclass_roles => ['MooseX::IsDefaults::Meta::IsRW'],
+ attribute_metaclass_roles => ['MooseX::HasDefaults::Meta::IsRW'],
);
return $options{for_class}->meta;
do {
package Person;
use Moose;
- use MooseX::IsDefaults::RO;
+ use MooseX::HasDefaults::RO;
has name => (
isa => 'Str',
do {
package Person;
use Moose;
- use MooseX::IsDefaults::RW;
+ use MooseX::HasDefaults::RW;
has name => (
isa => 'Str',
do {
package Person;
use Moose;
- use MooseX::IsDefaults::RO;
+ use MooseX::HasDefaults::RO;
has name => (
isa => 'Str',