diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-24 04:45:37 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-24 04:45:37 +0000 |
commit | 42142d434fcbfce15e2c5b73715e4a794dba361a (patch) | |
tree | cbe27530f5e66b9504c5667250806786d7ecf4b3 /array.c | |
parent | bd0880d53217e71e44952ee3dca02ea2d178e694 (diff) |
* object.c: rdoc formatting for Kernel#Array() [Backport #7931]
* array.c: Add rdoc for Array() method to Creating Arrays section
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |