summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
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 a8b65b2c51..fb412f1c8d 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