From 81af92a7513846d6e0fc315bc05433190aa03cc7 Mon Sep 17 00:00:00 2001 From: drbrain Date: Sun, 23 Dec 2007 10:35:58 +0000 Subject: Fix method redefined warning in open-uri.rb. [ruby-core:14304]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/open-uri.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 441134433..d6d4019e0 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -5,6 +5,9 @@ require 'time' module Kernel private alias open_uri_original_open open # :nodoc: + class << self + alias open_uri_original_open open # :nodoc: + end # makes possible to open various resources including URIs. # If the first argument respond to `open' method, -- cgit