зеркало из https://github.com/github/ruby.git
Correct documented return values for certain ENV methods (#2620)
This commit is contained in:
Родитель
e6f0fd8af4
Коммит
772b0613c5
16
hash.c
16
hash.c
|
@ -5194,7 +5194,7 @@ rb_env_size(VALUE ehash, VALUE args, VALUE eobj)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* ENV.each_key { |name| block } -> Hash
|
* ENV.each_key { |name| block } -> ENV
|
||||||
* ENV.each_key -> Enumerator
|
* ENV.each_key -> Enumerator
|
||||||
*
|
*
|
||||||
* Yields each environment variable name.
|
* Yields each environment variable name.
|
||||||
|
@ -5249,7 +5249,7 @@ env_f_values(VALUE _)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* ENV.each_value { |value| block } -> Hash
|
* ENV.each_value { |value| block } -> ENV
|
||||||
* ENV.each_value -> Enumerator
|
* ENV.each_value -> Enumerator
|
||||||
*
|
*
|
||||||
* Yields each environment variable +value+.
|
* Yields each environment variable +value+.
|
||||||
|
@ -5351,7 +5351,7 @@ env_reject_bang(VALUE ehash)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* ENV.delete_if { |name, value| block } -> Hash
|
* ENV.delete_if { |name, value| block } -> ENV
|
||||||
* ENV.delete_if -> Enumerator
|
* ENV.delete_if -> Enumerator
|
||||||
*
|
*
|
||||||
* Deletes every environment variable for which the block evaluates to +true+.
|
* Deletes every environment variable for which the block evaluates to +true+.
|
||||||
|
@ -5461,7 +5461,7 @@ env_select_bang(VALUE ehash)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* ENV.keep_if { |name, value| block } -> Hash
|
* ENV.keep_if { |name, value| block } -> ENV
|
||||||
* ENV.keep_if -> Enumerator
|
* ENV.keep_if -> Enumerator
|
||||||
*
|
*
|
||||||
* Deletes every environment variable where the block evaluates to +false+.
|
* Deletes every environment variable where the block evaluates to +false+.
|
||||||
|
@ -5975,10 +5975,10 @@ env_update_i(VALUE key, VALUE val, VALUE _)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* ENV.update(hash) -> Hash
|
* ENV.update(hash) -> ENV
|
||||||
* ENV.update(hash) { |name, old_value, new_value| block } -> Hash
|
* ENV.update(hash) { |name, old_value, new_value| block } -> ENV
|
||||||
* ENV.merge!(hash) -> Hash
|
* ENV.merge!(hash) -> ENV
|
||||||
* ENV.merge!(hash) { |name, old_value, new_value| block } -> Hash
|
* ENV.merge!(hash) { |name, old_value, new_value| block } -> ENV
|
||||||
*
|
*
|
||||||
* Adds the contents of +hash+ to the environment variables. If no block is
|
* Adds the contents of +hash+ to the environment variables. If no block is
|
||||||
* specified entries with duplicate keys are overwritten, otherwise the value
|
* specified entries with duplicate keys are overwritten, otherwise the value
|
||||||
|
|
Загрузка…
Ссылка в новой задаче