[]

[](*args)
Class Public methods

Returns a new array populated with the given objects.

Array.[]( 1, 'a', /^A/ ) # => [1, "a", /^A/]
Array[ 1, 'a', /^A/ ]    # => [1, "a", /^A/]
[ 1, 'a', /^A/ ]         # => [1, "a", /^A/]
doc_ruby_on_rails
2015-03-30 14:19:22
Comments
Leave a Comment

Please login to continue.