Permalink
Browse files

Add an inspect method to FD

  • Loading branch information...
1 parent 1edd3fb commit bbef9c7e56d938d8cf67cb687998cc6f44cc66f7 @gdb committed Sep 12, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/rubysh/fd.rb
View
@@ -31,6 +31,10 @@ def <<
Rubysh.<<(self)
end
+ def inspect
+ to_s
+ end
+
def to_s
"FD: #{@fileno}"
end

0 comments on commit bbef9c7

Please sign in to comment.