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

sartak at bestpractical.com sartak at bestpractical.com
Tue Feb 24 16:00:04 EST 2009


The branch, master has been updated
       via  e8d21f934e6362c11b8be6ba3987c5dce1ef0a29 (commit)
      from  0c749f2bbf013bf00e44a67432bef1afbd7a1996 (commit)

Summary of changes:
 lib/Path/Dispatcher/Declarative.pm |   38 ++++++++++++++++++------------------
 1 files changed, 19 insertions(+), 19 deletions(-)

- Log -----------------------------------------------------------------
commit e8d21f934e6362c11b8be6ba3987c5dce1ef0a29
Author: Shawn M Moore <sartak at gmail.com>
Date:   Tue Feb 24 15:59:57 2009 -0500

    Uncomment "then"'s doc

diff --git a/lib/Path/Dispatcher/Declarative.pm b/lib/Path/Dispatcher/Declarative.pm
index e09fa8d..4b6bcd5 100644
--- a/lib/Path/Dispatcher/Declarative.pm
+++ b/lib/Path/Dispatcher/Declarative.pm
@@ -333,29 +333,29 @@ This is creates a L<Path::Dispatcher::Rule::CodeRef> rule.
 Creates a L<Path::Dispatcher::Rule::Under> rule. The contents of the coderef
 should be nothing other L</on> and C<under> calls.
 
-=cut
+=head2 then sub { }
 
-#=head2 then sub { }
+Creates a L<Path::Dispatcher::Rule::Always> rule that will continue on to the
+next rule via C<next_rule>
 
-#Creates a L<Path::Dispatcher::Rule::Always> rule that will continue on to the
-#next rule via C<next_rule>
+The only argument is a coderef that processes normally (like L<on>).
 
-#The only argument is a coderef that processes normally (like L<on>)
+NOTE: You *can* avoid running a following rule by using C<abort_rule>.
 
-#NOTE: You *can* avoid running a following rule by uysing C<abort_rule>
+An example:
 
-#An example:
+    under show => sub {
+        then {
+            print "Displaying ";
+        };
+        on inventory => sub {
+            print "inventory:\n";
+            ...
+        };
+        on score => sub {
+            print "score:\n";
+            ...
+        };
 
-#    under show => sub {
-#        then {
-#            print "Displaying ";
-#        };
-#        on inventory => sub {
-#            print "inventory:\n";
-#            ...
-#        };
-#        on score => sub {
-#            print "score:\n";
-#            ...
-#        };
+=cut
 

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



More information about the Bps-public-commit mailing list