summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-21 12:10:53 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-21 12:10:53 +0000
commit66390013a1eb01c7159412e673965093f05f8161 (patch)
tree6882c85b826bcaacd58c77f133a6ed0a07d87e17 /lib
parented2dd5e3f497448356205e5f965d55850e32bae6 (diff)
* lib/resolv-replace.rb: specify super class for rdoc.
* lib/ipaddr.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/ipaddr.rb2
-rw-r--r--lib/resolv-replace.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/ipaddr.rb b/lib/ipaddr.rb
index 1fa0ed610f..226a996021 100644
--- a/lib/ipaddr.rb
+++ b/lib/ipaddr.rb
@@ -18,7 +18,7 @@
require 'socket'
unless Socket.const_defined? "AF_INET6"
- class Socket
+ class Socket < BasicSocket
AF_INET6 = Object.new
end
diff --git a/lib/resolv-replace.rb b/lib/resolv-replace.rb
index 63d58cea27..091b961f4f 100644
--- a/lib/resolv-replace.rb
+++ b/lib/resolv-replace.rb
@@ -12,7 +12,7 @@ class << IPSocket
end
end
-class TCPSocket
+class TCPSocket < IPSocket
alias original_resolv_initialize initialize
def initialize(host, serv, *rest)
rest[0] = IPSocket.getaddress(rest[0]) unless rest.empty?
@@ -20,7 +20,7 @@ class TCPSocket
end
end
-class UDPSocket
+class UDPSocket < IPSocket
alias original_resolv_bind bind
def bind(host, port)
host = IPSocket.getaddress(host) if host != ""
@@ -55,7 +55,7 @@ class UDPSocket
end
end
-class SOCKSSocket
+class SOCKSSocket < TCPSocket
alias original_resolv_initialize initialize
def initialize(host, serv)
original_resolv_initialize(IPSocket.getaddress(host), port)