diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/open-uri.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 4411344339..d6d4019e06 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, |