Merge branch 'master' into attribute_helpers
Hans Dieter Pearcey [Fri, 26 Jun 2009 20:38:55 +0000 (16:38 -0400)]
1  2 
lib/Moose.pm

diff --combined lib/Moose.pm
@@@ -1,4 -1,6 +1,6 @@@
  package Moose;
+ use strict;
+ use warnings;
  
  use 5.008;
  
@@@ -536,18 -538,6 +538,18 @@@ In this example, the Tree package gets 
  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
 +second is an array reference of curried arguments.
 +
  =item C<REGEXP>
  
  The regexp option works very similar to the ARRAY option, except that it builds