Also see Moose::Manual::Delta for more details of, and workarounds
for, noteworthy changes.
+ * Moose::Meta::Attribute
+ - Added the currying syntax for delegation from AttributeHelpers
+ to the existing delegation API. (hdp)
+
+ * Moose::Meta::Attribute::Native
+ - Moved in from MooseX::AttributeHelpers with API tweaks. See
+ Moose::Manual::Delta for details. (hdp, jhannah, rbuels, Sartak,
+ perigrin, doy)
+
* Moose::Error::Croak
* Moose::Error::Confess
- Clarify documentation on how to use. (Curtis Jewell)
+ * Moose
+ - Correct POD for builder to point to Recipe8, not 9. (gphat)
0.89 Thu Aug 13, 2009
* Moose::Manual::Attributes
use Moose::Util::TypeConstraints;
use Moose::Util ();
+ use Moose::Meta::Attribute::Native;
+
sub throw_error {
# FIXME This
shift;
which delegate to the C<node> and C<children> methods (respectively) of the Tree
instance stored in the C<parent> slot.
+ You may also use an array reference to curry arguments to the original method.
+
+ has 'thing' => (
+ ...
+ handles => { set_foo => [ set => 'foo' ] },
+ );
+
+ # $self->set_foo(...) calls $self->thing->set('foo', ...)
+
+ The first element of the array reference is the original method name, and the
+ rest is a list of curried arguments.
+
=item C<REGEXP>
The regexp option works very similar to the ARRAY option, except that it builds
The value of this key is the name of the method that will be called to
obtain the value used to initialize the attribute. See the L<builder
option docs in Class::MOP::Attribute|Class::MOP::Attribute/builder>
- and/or L<Moose::Cookbook::Basics::Recipe9> for more information.
+ and/or L<Moose::Cookbook::Basics::Recipe8> for more information.
=item I<default> => SCALAR | CODE
plan tests => scalar @modules;
my %trustme = (
- 'Moose' => ['make_immutable'],
'Moose::Meta::Attribute' => [
qw( interpolate_class
throw_error
attach_to_class
)
],
+ 'Moose::Meta::Attribute::Native::MethodProvider::Array' => ['.+'],
+ 'Moose::Meta::Attribute::Native::MethodProvider::Bool' => ['.+'],
+ 'Moose::Meta::Attribute::Native::MethodProvider::Counter' => ['.+'],
+ 'Moose::Meta::Attribute::Native::MethodProvider::Hash' => ['.+'],
+ 'Moose::Meta::Attribute::Native::MethodProvider::String' => ['.+'],
'Moose::Meta::Class' => [
qw( check_metaclass_compatibility
construct_instance
extends
has
inner
- make_immutable
override
super
with )