[Bps-public-commit] r14625 - in Path-Dispatcher/trunk: lib/Path/Dispatcher

sartak at bestpractical.com sartak at bestpractical.com
Tue Jul 29 16:57:35 EDT 2008


Author: sartak
Date: Tue Jul 29 16:57:33 2008
New Revision: 14625

Modified:
   Path-Dispatcher/trunk/   (props changed)
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule.pm

Log:
 r67916 at onn:  sartak | 2008-07-29 16:56:35 -0400
 Make attributes read-only for sanity/optimization purposes


Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule.pm	Tue Jul 29 16:57:33 2008
@@ -3,20 +3,20 @@
 use Moose;
 
 has stage => (
-    is       => 'rw',
+    is       => 'ro',
     isa      => 'Str',
     default  => 'on',
     required => 1,
 );
 
 has regex => (
-    is       => 'rw',
+    is       => 'ro',
     isa      => 'Regexp',
     required => 1,
 );
 
 has block => (
-    is       => 'rw',
+    is       => 'ro',
     isa      => 'CodeRef',
     required => 1,
 );



More information about the Bps-public-commit mailing list