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

sartak at bestpractical.com sartak at bestpractical.com
Wed Oct 29 19:34:59 EDT 2008


Author: sartak
Date: Wed Oct 29 19:34:59 2008
New Revision: 16611

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

Log:
 r74811 at onn:  sartak | 2008-10-29 19:34:55 -0400
 Skeleton of the Rule::Dispatch doc


Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Dispatch.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Dispatch.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Dispatch.pm	Wed Oct 29 19:34:59 2008
@@ -23,3 +23,43 @@
 
 1;
 
+__END__
+
+=head1 NAME
+
+Path::Dispatcher::Rule::Dispatch - redispatch
+
+=head1 SYNOPSIS
+
+    my $dispatcher = Path::Dispatcher->new(
+        rules => [
+            Path::Dispatcher::Rule::Tokens->new(
+                tokens => [  ],
+                block  => sub {  },
+            ),
+            Path::Dispatcher::Rule::Tokens->new(
+                tokens => [  ],
+                block  => sub {  },
+            ),
+        ],
+    );
+
+    my $rule = Path::Dispatcher::Rule::Dispatch->new(
+        dispatcher => $dispatcher,
+    );
+
+    $rule->run("");
+
+=head1 DESCRIPTION
+
+Rules of this class use another dispatcher to match the path.
+
+=head1 ATTRIBUTES
+
+=head2 dispatcher
+
+A L<Path::Dispatcher> object. Its matches will be returned by matching this
+rule.
+
+=cut
+



More information about the Bps-public-commit mailing list