[Bps-public-commit] r16666 - in Path-Dispatcher/trunk: lib/Path/Dispatcher
sartak at bestpractical.com
sartak at bestpractical.com
Tue Nov 4 17:35:44 EST 2008
Author: sartak
Date: Tue Nov 4 17:35:41 2008
New Revision: 16666
Modified:
Path-Dispatcher/trunk/ (props changed)
Path-Dispatcher/trunk/lib/Path/Dispatcher/Dispatch.pm
Log:
r74955 at onn: sartak | 2008-11-03 22:12:58 -0500
Add an alias "has_match"
Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Dispatch.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Dispatch.pm (original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Dispatch.pm Tue Nov 4 17:35:41 2008
@@ -13,12 +13,13 @@
provides => {
push => 'add_match',
elements => 'matches',
- count => 'has_matches',
+ count => 'has_match',
},
);
-# alias add_matches -> add_match
+# aliases
__PACKAGE__->meta->add_method(add_matches => __PACKAGE__->can('add_match'));
+__PACKAGE__->meta->add_method(has_matches => __PACKAGE__->can('has_match'));
sub run {
my $self = shift;
More information about the Bps-public-commit
mailing list