Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix Cool.IO for non-Str
  • Loading branch information
moritz committed Aug 24, 2011
1 parent 9323ff6 commit da40716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Cool.pm
Expand Up @@ -165,7 +165,7 @@ my class Cool {
method printf (*@args) { printf(self, @args) };
method samecase(Cool:D: Cool $pattern) { self.Stringy.samecase($pattern) }

method IO() { IO.new(:path(self)) }
method IO() { IO.new(:path(self.Stringy)) }
method trim () { self.Stringy.trim };
method trim-leading () { self.Stringy.trim-leading };
method trim-trailing() { self.Stringy.trim-trailing };
Expand Down

0 comments on commit da40716

Please sign in to comment.