summaryrefslogtreecommitdiff
path: root/lib/resolv.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-02 16:45:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-02 16:45:35 +0000
commit29cef5f795043a048a58874d90de0dfe01aa12ea (patch)
tree6ae42a518c1c5705b8f097668d2b83413da0b6ec /lib/resolv.rb
parent8815306dc5aadd777c887bbd8de7057598ad709c (diff)
use Object#class instead of deprecated Object#type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/resolv.rb')
-rw-r--r--lib/resolv.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb
index 14ced1217e..a29d8de27f 100644
--- a/lib/resolv.rb
+++ b/lib/resolv.rb
@@ -1239,11 +1239,11 @@ class Resolv
class Query
def encode_rdata(msg)
- raise EncodeError.new("#{self.type} is query.")
+ raise EncodeError.new("#{self.class} is query.")
end
def self.decode_rdata(msg)
- raise DecodeError.new("#{self.type} is query.")
+ raise DecodeError.new("#{self.class} is query.")
end
end
@@ -1259,7 +1259,7 @@ class Resolv
end
def ==(other)
- return self.type == other.type &&
+ return self.class == other.class &&
self.instance_variables == other.instance_variables &&
self.instance_variables.collect {|name| self.instance_eval name} ==
other.instance_variables.collect {|name| other.instance_eval name}