summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-26 03:58:33 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-01-26 03:58:33 +0000
commit0051369ba3eff58cb734795543d7ca894b621d05 (patch)
tree0c271bf123ac3ae817668d14acc271eec6dfa163 /hash.c
parent6048f9a6cf5bc650da33124a5889a3160422f58d (diff)
* hash.c (rb_env_size): Restored documentation for ENV.size
* lib/drb/drb.rb: Documented DRb::DRb#run. * lib/erb.rb (class ERB): Improved documentation of ERb. * transcode.c: Documented Encoding::Converter constants. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/hash.c b/hash.c
index df0adb19fb..48201b6e60 100644
--- a/hash.c
+++ b/hash.c
@@ -2566,15 +2566,6 @@ env_keys(void)
return ary;
}
-/*
- * call-seq:
- * ENV.each_key { |name| } -> Hash
- * ENV.each_key -> Enumerator
- *
- * Yields each environment variable name.
- *
- * An Enumerator is returned if no block is given.
- */
static VALUE
rb_env_size(VALUE ehash)
{
@@ -2593,6 +2584,15 @@ rb_env_size(VALUE ehash)
return LONG2FIX(cnt);
}
+/*
+ * call-seq:
+ * ENV.each_key { |name| } -> Hash
+ * ENV.each_key -> Enumerator
+ *
+ * Yields each environment variable name.
+ *
+ * An Enumerator is returned if no block is given.
+ */
static VALUE
env_each_key(VALUE ehash)
{