Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Str.path.
Doesn't really do the right thing, as it's not an IO::Path, but it works well enough for many purposes.
  • Loading branch information
colomon committed Jun 3, 2013
1 parent 88ee1d8 commit 7c7c2ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/CORE.setting
Expand Up @@ -976,6 +976,7 @@ my class Str is Cool {
method ACCEPTS(\t) { defined(self) ?? self eq t !! t.^does(self) }
method chars() { chars(self) }
method IO() { IO.new(path => self) }
method path() { IO.new(path => self) }
method say() { $*OUT.say(self) }
multi method WHICH(Str:D:) {
ObjAt.new(str => ("str|" ~ self), ref => self.WHAT)
Expand Down

0 comments on commit 7c7c2ff

Please sign in to comment.