whitespace changes for attributes
[catagits/Catalyst-Runtime.git] / lib / Catalyst / ActionContainer.pm
index ee7cfa7..9d41f4e 100644 (file)
@@ -17,7 +17,14 @@ to represent the various dispatch points in your application.
 
 use Moose;
 
-has part    => (is => 'rw', required => 1, lazy => 1, default => sub { {} });
+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 { {} });
 
 around 'new' => sub {
@@ -41,6 +48,8 @@ sub add_action {
     $self->actions->{$name} = $action;
 }
 
+__PACKAGE__->meta->make_immutable;
+
 1;
 
 __END__
@@ -76,7 +85,7 @@ Provided by Moose
 
 =head1 AUTHOR
 
-Matt S. Trout 
+Matt S. Trout
 
 =head1 COPYRIGHT