Module: Kernel
Relationships & Source Files | |
Defined in: | lib/open-uri.rb |
Class Method Summary
- open_uri_original_open Internal use only
- open(name, *rest, **kw, &block) mod_func Internal use only
Instance Method Summary
- open_uri_original_open private Internal use only
Class Method Details
open(name, *rest, **kw, &block) (mod_func)
This method is for internal use only.
[ GitHub ]
# File 'lib/open-uri.rb', line 13
def open(name, *rest, **kw, &block) # :nodoc: if (name.respond_to?(:open) && !name.respond_to?(:to_path)) || (name.respond_to?(:to_str) && %r{\A[A-Za-z][A-Za-z0-9+\-\.]*://} =~ name && (uri = URI.parse(name)).respond_to?(:open)) warn('calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open', uplevel: 1) URI.open(name, *rest, **kw, &block) else open_uri_original_open(name, *rest, **kw, &block) end end
open_uri_original_open
This method is for internal use only.
[ GitHub ]
# File 'lib/open-uri.rb', line 10
alias open_uri_original_open open # :nodoc:
Instance Method Details
open_uri_original_open (private)
This method is for internal use only.
[ GitHub ]
# File 'lib/open-uri.rb', line 8
alias open_uri_original_open open # :nodoc: