summaryrefslogtreecommitdiff
path: root/kernel.rb
diff options
context:
space:
mode:
authorMasataka Pocke Kuwabara <[email protected]>2021-01-08 23:52:35 +0900
committerJeremy Evans <[email protected]>2021-01-08 07:31:27 -0800
commit391ee3ee3acb2553b5ae7817373eaf3fce891e07 ()
treeb5dd2407962babb3bc9359007243b9977ec603b0 /kernel.rb
parent98bd7e87a08b86c7aa95502428015c3f7b4aae75 (diff)
Replace `Kernel.#open` with `URI.open` in doc
Because `Kernel.#open` no longer opens URI since Ruby 3.0.
Notes: Merged: https://.com/ruby/ruby/pull/4039
-rw-r--r--kernel.rb4
1 files changed, 2 insertions, 2 deletions
@@ -105,7 +105,7 @@ module Kernel
# require 'json'
#
# construct_url(arguments).
- # then {|url| open(url).read }.
# then {|response| JSON.parse(response) }
#
# When called without block, the method returns +Enumerator+,
@@ -138,7 +138,7 @@ module Kernel
# require 'json'
#
# construct_url(arguments).
- # then {|url| open(url).read }.
# then {|response| JSON.parse(response) }
#
def yield_self