summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-19 03:32:11 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-19 03:32:11 +0000
commit281e6e1b3be1a5415a51cfd80757f004d4e12e78 (patch)
tree6d08259ede183d4511476399ac4c5b757eabcf8b /array.c
parent2163738ffb01c5891f8e1d441811b8b3b50261bb (diff)
* object.c: rdoc formatting for Kernel#Array()
* array.c: Add rdoc for Array() method to Creating Arrays section git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/array.c b/array.c
index a7c74a2aa4..c9ff128df0 100644
--- a/array.c
+++ b/array.c
@@ -5240,6 +5240,11 @@ rb_ary_drop_while(VALUE ary)
* empty_table = Array.new(3) { Array.new(3) }
* #=> [[nil, nil, nil], [nil, nil, nil], [nil, nil, nil]]
*
+ * An array can also be created by using the Array() method, provided by
+ * Kernel, which calls #to_ary or #to_a on it's argument.
+ *
+ * Array({:a => "a", :b => "b"}) #=> [[:a, "a"], [:b, "b"]]
+ *
* == Example Usage
*
* In addition to the methods it mixes in through the Enumerable module, the