method
to_ary
v1_8_6_287 -
Show latest stable
- Class:
Array
to_ary()public
Returns self.
/*
* call-seq:
* array.to_ary -> array
*
* Returns _self_.
*/
static VALUE
rb_ary_to_ary_m(ary)
VALUE ary;
{
return ary;
} Related methods
- Instance methods
- &
- *
- +
- -
- <<
- <=>
- ==
- []
- []=
- abbrev
- assoc
- at
- clear
- collect
- collect!
- compact
- compact!
- concat
- dclone
- delete
- delete_at
- delete_if
- each
- each_index
- empty?
- eql?
- fetch
- fill
- first
- flatten
- flatten!
- frozen?
- hash
- include?
- index
- indexes
- indices
- initialize_copy
- insert
- inspect
- join
- last
- length
- map
- map!
- nitems
- pack
- pop
- pretty_print
- pretty_print_cycle
- push
- quote
- rassoc
- reject
- reject!
- replace
- reverse
- reverse!
- reverse_each
- rindex
- select
- shift
- size
- slice
- slice!
- sort
- sort!
- to_a
- to_ary
- to_s
- to_yaml
- transpose
- uniq
- uniq!
- unshift
- values_at
- yaml_initialize
- zip
- |
- Class methods
- []
- new