Ruby Newbie homepage Ruby Newbie homepage

How to use

Quick guide

Official content
Reverses self in place:
a = ['foo', 'bar', 'two']
a.reverse! # => ["two", "bar", "foo"]
 
               static VALUE
rb_ary_reverse_bang(VALUE ary)
{
    return rb_ary_reverse(ary);
}
            

Was this page useful?