Skip to content

Commit

Permalink
Add an inspect method to FD
Browse files Browse the repository at this point in the history
  • Loading branch information
gdb committed Sep 12, 2012
1 parent 1edd3fb commit bbef9c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rubysh/fd.rb
Expand Up @@ -31,6 +31,10 @@ def <<
Rubysh.<<(self) Rubysh.<<(self)
end end


def inspect
to_s
end

def to_s def to_s
"FD: #{@fileno}" "FD: #{@fileno}"
end end
Expand Down

0 comments on commit bbef9c7

Please sign in to comment.