Method: Array#reverse_each
- Defined in:
- array.c
#reverse_each {|item| ... } ⇒ Object
Same as Array#each, but traverses self in reverse order.
a = [ "a", "b", "c" ]
a.reverse_each {|x| print x, " " }
produces:
c b a
1185 1186 1187 |
# File 'array.c', line 1185 static VALUE rb_ary_reverse_each(ary) VALUE ary; |