Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Give IO::Path an .extension, spotted by colomon++
  • Loading branch information
lizmat committed Dec 3, 2014
1 parent 8651016 commit e395e87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/IO/Path.pm
Expand Up @@ -71,6 +71,7 @@ my class IO::Path is Cool {
method volume(IO::Path:D:) { %.parts<volume> }
method dirname(IO::Path:D:) { %.parts<dirname> }
method basename(IO::Path:D:) { %.parts<basename> }
method extension(IO::Path:D:) { MAKE-EXT(self.basename) }

# core can't do 'basename handles <Numeric Bridge Int>'
method Numeric(IO::Path:D:) { self.basename.Numeric }
Expand Down

0 comments on commit e395e87

Please sign in to comment.