[DOC] Keep example styles consistent
The examples of chaining for other methods, such as #tap have the dot at the start of the line, while #then has it at the end of the previous line. Updated this to have consistent style in Kernel docs.
This commit is contained in:
parent
bae3d68134
commit
b7a33aef9e
Notes:
git
2024-10-02 08:08:03 +00:00
@ -105,9 +105,9 @@ module Kernel
|
|||||||
# require 'open-uri'
|
# require 'open-uri'
|
||||||
# require 'json'
|
# require 'json'
|
||||||
#
|
#
|
||||||
# construct_url(arguments).
|
# construct_url(arguments)
|
||||||
# then {|url| URI(url).read }.
|
# .then {|url| URI(url).read }
|
||||||
# then {|response| JSON.parse(response) }
|
# .then {|response| JSON.parse(response) }
|
||||||
#
|
#
|
||||||
# When called without block, the method returns +Enumerator+,
|
# When called without block, the method returns +Enumerator+,
|
||||||
# which can be used, for example, for conditional
|
# which can be used, for example, for conditional
|
||||||
|
Loading…
x
Reference in New Issue
Block a user