diff options
| author | Masaki Muranaka <[email protected]> | 2013-05-08 12:50:38 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-05-08 13:22:35 +0900 |
| commit | 82c891acee1c1d2657b3dbe73797af5a7020827f (patch) | |
| tree | 0b1e5158fa551a33ae8d47f1b3743f6c353513aa /src/hash.c | |
| parent | a46eacb213bbf001f688dc8f00cf85ea1b8a6281 (diff) | |
| download | mruby-82c891acee1c1d2657b3dbe73797af5a7020827f.tar.gz mruby-82c891acee1c1d2657b3dbe73797af5a7020827f.zip | |
Move comments from hash.c to hash.rb.
Diffstat (limited to 'src/hash.c')
| -rw-r--r-- | src/hash.c | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/src/hash.c b/src/hash.c index 566d423a9..6910aec7f 100644 --- a/src/hash.c +++ b/src/hash.c @@ -790,69 +790,6 @@ mrb_hash_empty_p(mrb_state *mrb, mrb_value self) return mrb_bool_value(empty_p); } -/* 15.2.13.4.11 */ -/* - * call-seq: - * hsh.each_value {| value | block } -> hsh - * hsh.each_value -> an_enumerator - * - * Calls <i>block</i> once for each key in <i>hsh</i>, passing the - * value as a parameter. - * - * If no block is given, an enumerator is returned instead. - * - * h = { "a" => 100, "b" => 200 } - * h.each_value {|value| puts value } - * - * <em>produces:</em> - * - * 100 - * 200 - */ - -/* 15.2.13.4.10 */ -/* - * call-seq: - * hsh.each_key {| key | block } -> hsh - * hsh.each_key -> an_enumerator - * - * Calls <i>block</i> once for each key in <i>hsh</i>, passing the key - * as a parameter. - * - * If no block is given, an enumerator is returned instead. - * - * h = { "a" => 100, "b" => 200 } - * h.each_key {|key| puts key } - * - * <em>produces:</em> - * - * a - * b - */ - -/* 15.2.13.4.9 */ -/* - * call-seq: - * hsh.each {| key, value | block } -> hsh - * hsh.each_pair {| key, value | block } -> hsh - * hsh.each -> an_enumerator - * hsh.each_pair -> an_enumerator - * - * Calls <i>block</i> once for each key in <i>hsh</i>, passing the key-value - * pair as parameters. - * - * If no block is given, an enumerator is returned instead. - * - * h = { "a" => 100, "b" => 200 } - * h.each {|key, value| puts "#{key} is #{value}" } - * - * <em>produces:</em> - * - * a is 100 - * b is 200 - * - */ - static mrb_value inspect_hash(mrb_state *mrb, mrb_value hash, int recur) { |
