[Bps-public-commit] Path-Dispatcher branch, master, updated. c70903c7f386ce44906d9e85b2298d8b60963a58

sartak at bestpractical.com sartak at bestpractical.com
Thu Mar 26 21:25:59 EDT 2009


The branch, master has been updated
       via  c70903c7f386ce44906d9e85b2298d8b60963a58 (commit)
      from  139adf273504585e6299b3722cb43c3d61d806e9 (commit)

Summary of changes:
 lib/Path/Dispatcher/Dispatch.pm |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit c70903c7f386ce44906d9e85b2298d8b60963a58
Author: Shawn M Moore <sartak at gmail.com>
Date:   Thu Mar 26 21:25:47 2009 -0400

    The attribute name is _matches not matches

diff --git a/lib/Path/Dispatcher/Dispatch.pm b/lib/Path/Dispatcher/Dispatch.pm
index 7e8b6c2..7fac5b7 100644
--- a/lib/Path/Dispatcher/Dispatch.pm
+++ b/lib/Path/Dispatcher/Dispatch.pm
@@ -19,9 +19,9 @@ sub add_match {
     push @{ $self->{matches} }, @_;
 }
 
-sub matches     { @{ shift->{matches} } }
-sub has_match   { scalar @{ shift->{matches} } }
-sub first_match { shift->{matches}[0] }
+sub matches     { @{ shift->{_matches} } }
+sub has_match   { scalar @{ shift->{_matches} } }
+sub first_match { shift->{_matches}[0] }
 
 # aliases
 __PACKAGE__->meta->add_method(add_matches => __PACKAGE__->can('add_match'));

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list