Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make IO::Dup.WHICH/Str work
  • Loading branch information
lizmat committed Feb 23, 2015
1 parent 98d08d3 commit 71129ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/IO/Dup.pm
Expand Up @@ -23,8 +23,8 @@ class IO::Dup does IO does PIO {
self!set-PIO-attributes(:$PIO,|c);
}

method WHICH(IO::Dup:D:) { "IO::Dup($!fileno)" }
method Str(IO::Dup:D:) { @name[$!fileno] // "Dup#$!fileno" }
multi method WHICH(IO::Dup:D:) { "IO::Dup($!fileno)" }
multi method Str(IO::Dup:D:) { @name[$!fileno] // "Dup#$!fileno" }

method IO(IO::Dup:D:) { self }

Expand Down

0 comments on commit 71129ea

Please sign in to comment.