mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rss/rss.rb, lib/rss/parser.rb: removed needless code for
backward compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0d59cd79cc
commit
cbcb626ee5
3 changed files with 6 additions and 42 deletions
|
@ -1,17 +1,5 @@
|
|||
require "forwardable"
|
||||
begin
|
||||
require "open-uri"
|
||||
rescue LoadError
|
||||
require "uri"
|
||||
end
|
||||
unless Kernel.methods.include?("URI")
|
||||
module Kernel
|
||||
def URI(uri_str) # :doc:
|
||||
URI.parse(uri_str)
|
||||
end
|
||||
module_function :URI
|
||||
end
|
||||
end
|
||||
require "open-uri"
|
||||
|
||||
require "rss/rss"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue