diff options
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r-- | lib/net/protocol.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index a3ffa71745..f908f3a1d6 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -62,6 +62,10 @@ module Net # :nodoc: "#<#{self.class} io=#{@io}>" end + def eof? + @io.eof? + end + def closed? @io.closed? end |