зеркало из https://github.com/github/ruby.git
* removed URI::Generic#to_ary.
* URI::Generic included URI. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
46586b2096
Коммит
77d007dc05
|
@ -15,7 +15,7 @@
|
||||||
=end
|
=end
|
||||||
|
|
||||||
module URI
|
module URI
|
||||||
VERSION_CODE = '000908'.freeze
|
VERSION_CODE = '000909'.freeze
|
||||||
VERSION = VERSION_CODE.scan(/../).collect{|n| n.to_i}.join('.').freeze
|
VERSION = VERSION_CODE.scan(/../).collect{|n| n.to_i}.join('.').freeze
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ Object
|
||||||
=end
|
=end
|
||||||
|
|
||||||
class Generic
|
class Generic
|
||||||
|
include URI
|
||||||
include REGEXP
|
include REGEXP
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
@ -1085,7 +1086,7 @@ Object
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.class == oth.class
|
if self.class == oth.class
|
||||||
self.normalize.to_ary == oth.normalize.to_ary
|
self.normalize.component_ary == oth.normalize.component_ary
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
@ -1101,17 +1102,13 @@ Object
|
||||||
# end
|
# end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
--- URI::Generic#to_a
|
|
||||||
=end
|
=end
|
||||||
def to_ary
|
def component_ary
|
||||||
component.collect do |x|
|
component.collect do |x|
|
||||||
self.send(x)
|
self.send(x)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
protected :component_ary
|
||||||
def to_a
|
|
||||||
to_ary
|
|
||||||
end
|
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
--- URI::Generic#select(*components)
|
--- URI::Generic#select(*components)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче