Skip to content

Commit

Permalink
mention which methods normalize the path
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 8, 2013
1 parent 4c97438 commit 1fa3ebf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Mojo/Path.pm
Expand Up @@ -216,15 +216,15 @@ Check if path contains given prefix.
my $slash = $path->leading_slash;
$path = $path->leading_slash(1);
Path has a leading slash.
Path has a leading slash. Note that this method will normalize the path.
=head2 merge
$path = $path->merge('/foo/bar');
$path = $path->merge('foo/bar');
$path = $path->merge(Mojo::Path->new('foo/bar'));
Merge paths.
Merge paths. Note that this method will normalize both paths if necessary.
# "/baz/yada"
Mojo::Path->new('/foo/bar')->merge('/baz/yada');
Expand Down Expand Up @@ -256,7 +256,7 @@ Turn path into an absolute string.
my $parts = $path->parts;
$path = $path->parts([qw(foo bar baz)]);
The path parts.
The path parts. Note that this method will normalize the path.
# Part with slash
push @{$path->parts}, 'foo/bar';
Expand Down Expand Up @@ -301,7 +301,7 @@ Turn path into a string.
my $slash = $path->trailing_slash;
$path = $path->trailing_slash(1);
Path has a trailing slash.
Path has a trailing slash. Note that this method will normalize the path.
=head1 SEE ALSO
Expand Down

0 comments on commit 1fa3ebf

Please sign in to comment.