mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
enable document for Kernel.open.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
795405fe3a
commit
15d2b80c8a
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ module Kernel
|
|||
# Kernel[#.]open can accepts such URIs and strings which begins with
|
||||
# http:// and ftp://. In this http and ftp case, the opened file object
|
||||
# is extended by OpenURI::Meta.
|
||||
def open(name, *rest, &block)
|
||||
def open(name, *rest, &block) # :doc:
|
||||
if name.respond_to?(:open)
|
||||
name.open(*rest, &block)
|
||||
elsif name.respond_to?(:to_str) &&
|
||||
|
|
Loading…
Reference in a new issue