Added examples for cat utils
Sebastian Riedel [Tue, 26 Apr 2005 00:43:47 +0000 (00:43 +0000)]
lib/Catalyst/Utils.pm

index 3f44898..785c607 100644 (file)
@@ -29,6 +29,8 @@ sub attrs { attributes::get( $_[0] ) || [] }
 
 Returns a prefixed action.
 
+    MyApp::C::Foo::Bar, yada becomes /foo/bar/yada
+
 =cut
 
 sub prefix {
@@ -42,6 +44,9 @@ sub prefix {
 
 Returns the appclass for class.
 
+    MyApp::C::Foo::Bar becomes MyApp
+    My::App::C::Foo::Bar becomes My::App
+
 =cut
 
 sub class2appclass {
@@ -57,6 +62,9 @@ sub class2appclass {
 
 Returns the classprefix for class.
 
+    MyApp::C::Foo::Bar becomes MyApp::C
+    My::App::C::Foo::Bar becomes My::App::C
+
 =cut
 
 sub class2classprefix {
@@ -72,6 +80,8 @@ sub class2classprefix {
 
 Returns the classsuffix for class.
 
+    MyApp::C::Foo::Bar becomes C::Foo::Bar
+
 =cut
 
 sub class2classsuffix {
@@ -85,6 +95,8 @@ sub class2classsuffix {
 
 Returns the prefix for class.
 
+    My::App::C::Foo::Bar becomes /foo/bar
+
 =cut
 
 sub class2prefix {