diff --git a/refm/api/src/open-uri.rd b/refm/api/src/open-uri.rd index 98bd9bc94a..8b8c94512a 100644 --- a/refm/api/src/open-uri.rd +++ b/refm/api/src/open-uri.rd @@ -473,7 +473,7 @@ open('http://example.com/') {|f| #@samplecode 例 #@since 2.7.0 require 'open-uri' -URL.open('http://www.ruby-lang.org/') {|f| +URI.open('http://www.ruby-lang.org/') {|f| p f.base_uri #=> # } @@ -493,7 +493,7 @@ open('http://www.ruby-lang.org/') {|f| #@samplecode 例 #@since 2.7.0 require 'open-uri' -URL.open('http://example.com/') {|f| +URI.open('http://example.com/') {|f| p f.meta #=> {"date"=>"Sun, 04 May 2008 11:26:40 GMT", # "content-type"=>"text/html;charset=utf-8",