mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
8815306dc5
commit
29cef5f795
22 changed files with 91 additions and 93 deletions
|
@ -36,7 +36,7 @@ Object
|
|||
end
|
||||
|
||||
def default_port
|
||||
self.type.default_port
|
||||
self.class.default_port
|
||||
end
|
||||
|
||||
=begin
|
||||
|
@ -121,7 +121,7 @@ Object
|
|||
end
|
||||
else
|
||||
raise ArgumentError,
|
||||
"expected Array of or Hash of components of #{self.type} (#{self.type.component.join(', ')})"
|
||||
"expected Array of or Hash of components of #{self.class} (#{self.class.component.join(', ')})"
|
||||
end
|
||||
|
||||
tmp << true
|
||||
|
@ -195,7 +195,7 @@ Object
|
|||
|
||||
=end
|
||||
def component
|
||||
self.type.component
|
||||
self.class.component
|
||||
end
|
||||
|
||||
# set_XXX method sets value to @XXX instance variable with no check,
|
||||
|
@ -1087,7 +1087,7 @@ Object
|
|||
=begin
|
||||
=end
|
||||
def inspect
|
||||
sprintf("#<%s:0x%x URL:%s>", self.type.to_s, self.id, self.to_s)
|
||||
sprintf("#<%s:0x%x URL:%s>", self.class.to_s, self.id, self.to_s)
|
||||
end
|
||||
|
||||
=begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue