Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
IO::Path.extension
  • Loading branch information
ugexe committed Jul 5, 2015
1 parent 319ddfb commit 5dc0865
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Type/IO/Path.pod
Expand Up @@ -54,6 +54,14 @@ the file relative to its directory.
say IO::Path.new("/etc/passwd").basename; # passwd
=head2 method extension
method extension(IO::Path:D:)
Returns the extension (if any) of the path object.
say IO::Path.new("docs/README.pod").extension; # pod
=head2 method dirname
method dirname(IO::Path:D:)
Expand Down

0 comments on commit 5dc0865

Please sign in to comment.