Behavior for method modifiers with non-regexp refs
authorDylan William Hardison <dylan@hardison.net>
Wed, 27 Jan 2010 23:31:54 +0000 (18:31 -0500)
committerDylan William Hardison <dylan@hardison.net>
Wed, 27 Jan 2010 23:31:54 +0000 (18:31 -0500)
commit775666aaf8c87fc200eac76abe6967bd943751c4
treef014bacbffa3877fc1d4630957c17946f4b33f20
parentb52ba52254ae00ab6a4f4d0eeee1faecb7c5d30a
Behavior for method modifiers with non-regexp refs

The code:
before ['foo', 'bar'] => sub { }
Was previously silently ignored. Now it means the same as:
before ('foo', 'bar') => sub { }

This means that method modifiers can now be:
* a list
* a regexp ref.
* an arrayref

Anything else results in an error message.
Changes
lib/Moose/Manual/Delta.pod
lib/Moose/Util.pm
t/400_moose_util/008_method_mod_args.t [new file with mode: 0644]