[Catalyst-commits] r7521 -
Catalyst-Runtime/5.80/branches/moose/lib/Catalyst
marcus at dev.catalyst.perl.org
marcus at dev.catalyst.perl.org
Tue Mar 25 19:11:30 GMT 2008
Author: marcus
Date: 2008-03-25 19:11:29 +0000 (Tue, 25 Mar 2008)
New Revision: 7521
Modified:
Catalyst-Runtime/5.80/branches/moose/lib/Catalyst/ActionContainer.pm
Log:
Overload to stringify correctly
Modified: Catalyst-Runtime/5.80/branches/moose/lib/Catalyst/ActionContainer.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/moose/lib/Catalyst/ActionContainer.pm 2008-03-22 21:29:20 UTC (rev 7520)
+++ Catalyst-Runtime/5.80/branches/moose/lib/Catalyst/ActionContainer.pm 2008-03-25 19:11:29 UTC (rev 7521)
@@ -17,6 +17,13 @@
use Moose;
+use overload (
+
+ # Stringify to path part for tree search
+ q{""} => sub { shift->part },
+
+);
+
has part => (is => 'rw', required => 1, lazy => 1, default => sub { {} });
has actions => (is => 'rw', required => 1, lazy => 1, default => sub { {} });
More information about the Catalyst-commits
mailing list