[前][次][番号順一覧][スレッド一覧]

ruby-changes:53318

From: stomar <ko1@a...>
Date: Sun, 4 Nov 2018 20:55:37 +0900 (JST)
Subject: [ruby-changes:53318] stomar:r65532 (trunk): hash.c: [DOC] add missing `block' in call-seq's

stomar	2018-11-04 20:45:11 +0900 (Sun, 04 Nov 2018)

  New Revision: 65532

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65532

  Log:
    hash.c: [DOC] add missing `block' in call-seq's

  Modified files:
    trunk/hash.c
Index: hash.c
===================================================================
--- hash.c	(revision 65531)
+++ hash.c	(revision 65532)
@@ -4478,8 +4478,8 @@ env_delete(VALUE obj, VALUE name) https://github.com/ruby/ruby/blob/trunk/hash.c#L4478
 
 /*
  * call-seq:
- *   ENV.delete(name)            -> value
- *   ENV.delete(name) { |name| } -> value
+ *   ENV.delete(name)                  -> value
+ *   ENV.delete(name) { |name| block } -> value
  *
  * Deletes the environment variable with +name+ and returns the value of the
  * variable.  If a block is given it will be called when the named environment
@@ -4518,9 +4518,9 @@ rb_f_getenv(VALUE obj, VALUE name) https://github.com/ruby/ruby/blob/trunk/hash.c#L4518
 /*
  * :yield: missing_name
  * call-seq:
- *   ENV.fetch(name)                        -> value
- *   ENV.fetch(name, default)               -> value
- *   ENV.fetch(name) { |missing_name| ... } -> value
+ *   ENV.fetch(name)                          -> value
+ *   ENV.fetch(name, default)                 -> value
+ *   ENV.fetch(name) { |missing_name| block } -> value
  *
  * Retrieves the environment variable +name+.
  *
@@ -4897,8 +4897,8 @@ rb_env_size(VALUE ehash, VALUE args, VAL https://github.com/ruby/ruby/blob/trunk/hash.c#L4897
 
 /*
  * call-seq:
- *   ENV.each_key { |name| } -> Hash
- *   ENV.each_key            -> Enumerator
+ *   ENV.each_key { |name| block } -> Hash
+ *   ENV.each_key                  -> Enumerator
  *
  * Yields each environment variable name.
  *
@@ -4945,8 +4945,8 @@ env_values(void) https://github.com/ruby/ruby/blob/trunk/hash.c#L4945
 
 /*
  * call-seq:
- *   ENV.each_value { |value| } -> Hash
- *   ENV.each_value             -> Enumerator
+ *   ENV.each_value { |value| block } -> Hash
+ *   ENV.each_value                   -> Enumerator
  *
  * Yields each environment variable +value+.
  *
@@ -4968,10 +4968,10 @@ env_each_value(VALUE ehash) https://github.com/ruby/ruby/blob/trunk/hash.c#L4968
 
 /*
  * call-seq:
- *   ENV.each      { |name, value| } -> Hash
- *   ENV.each                        -> Enumerator
- *   ENV.each_pair { |name, value| } -> Hash
- *   ENV.each_pair                   -> Enumerator
+ *   ENV.each      { |name, value| block } -> Hash
+ *   ENV.each                              -> Enumerator
+ *   ENV.each_pair { |name, value| block } -> Hash
+ *   ENV.each_pair                         -> Enumerator
  *
  * Yields each environment variable +name+ and +value+.
  *
@@ -5013,8 +5013,8 @@ env_each_pair(VALUE ehash) https://github.com/ruby/ruby/blob/trunk/hash.c#L5013
 
 /*
  * call-seq:
- *   ENV.reject! { |name, value| } -> ENV or nil
- *   ENV.reject!                   -> Enumerator
+ *   ENV.reject! { |name, value| block } -> ENV or nil
+ *   ENV.reject!                         -> Enumerator
  *
  * Equivalent to ENV#delete_if but returns +nil+ if no changes were made.
  *
@@ -5047,8 +5047,8 @@ env_reject_bang(VALUE ehash) https://github.com/ruby/ruby/blob/trunk/hash.c#L5047
 
 /*
  * call-seq:
- *   ENV.delete_if { |name, value| } -> Hash
- *   ENV.delete_if                   -> Enumerator
+ *   ENV.delete_if { |name, value| block } -> Hash
+ *   ENV.delete_if                         -> Enumerator
  *
  * Deletes every environment variable for which the block evaluates to +true+.
  *
@@ -5084,8 +5084,8 @@ env_values_at(int argc, VALUE *argv) https://github.com/ruby/ruby/blob/trunk/hash.c#L5084
 
 /*
  * call-seq:
- *   ENV.select { |name, value| } -> Hash
- *   ENV.select                   -> Enumerator
+ *   ENV.select { |name, value| block } -> Hash
+ *   ENV.select                         -> Enumerator
  *
  * Returns a copy of the environment for entries where the block returns true.
  *
@@ -5117,8 +5117,8 @@ env_select(VALUE ehash) https://github.com/ruby/ruby/blob/trunk/hash.c#L5117
 
 /*
  * call-seq:
- *   ENV.select! { |name, value| } -> ENV or nil
- *   ENV.select!                   -> Enumerator
+ *   ENV.select! { |name, value| block } -> ENV or nil
+ *   ENV.select!                         -> Enumerator
  *
  * Equivalent to ENV#keep_if but returns +nil+ if no changes were made.
  */
@@ -5149,8 +5149,8 @@ env_select_bang(VALUE ehash) https://github.com/ruby/ruby/blob/trunk/hash.c#L5149
 
 /*
  * call-seq:
- *   ENV.keep_if { |name, value| } -> Hash
- *   ENV.keep_if                   -> Enumerator
+ *   ENV.keep_if { |name, value| block } -> Hash
+ *   ENV.keep_if                         -> Enumerator
  *
  * Deletes every environment variable where the block evaluates to +false+.
  *
@@ -5537,8 +5537,8 @@ env_to_h(void) https://github.com/ruby/ruby/blob/trunk/hash.c#L5537
 
 /*
  * call-seq:
- *   ENV.reject { |name, value| } -> Hash
- *   ENV.reject                   -> Enumerator
+ *   ENV.reject { |name, value| block } -> Hash
+ *   ENV.reject                         -> Enumerator
  *
  * Same as ENV#delete_if, but works on (and returns) a copy of the
  * environment.
@@ -5636,8 +5636,8 @@ env_update_i(VALUE key, VALUE val) https://github.com/ruby/ruby/blob/trunk/hash.c#L5636
 
 /*
  * call-seq:
- *   ENV.update(hash)                                  -> Hash
- *   ENV.update(hash) { |name, old_value, new_value| } -> Hash
+ *   ENV.update(hash)                                        -> Hash
+ *   ENV.update(hash) { |name, old_value, new_value| block } -> Hash
  *
  * Adds the contents of +hash+ to the environment variables.  If no block is
  * specified entries with duplicate keys are overwritten, otherwise the value

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]