Skip to content

Commit

Permalink
a few more Mojo::Path examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 8, 2013
1 parent 3df3e35 commit 52d43aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Mojo/Path.pm
Expand Up @@ -234,6 +234,9 @@ Parse path. Note that C<%2F> will be treated as C</> for security reasons.
Turn path into an absolute string.
# "/i/%E2%99%A5/mojolicious"
Mojo::Path->new('i/%E2%99%A5/mojolicious')->to_abs_string;
=head2 to_route
my $route = $path->to_route;
Expand All @@ -250,6 +253,9 @@ Turn path into a route.
Turn path into a string.
# "/i/%E2%99%A5/mojolicious"
Mojo::Path->new('/i/%E2%99%A5/mojolicious')->to_string;
=head1 SEE ALSO
L<Mojolicious>, L<Mojolicious::Guides>, L<http://mojolicio.us>.
Expand Down

0 comments on commit 52d43aa

Please sign in to comment.