This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

collect!

        # Array.collect!

(from ruby core)
---
    array.map! {|element| ... } -> self
    array.map! -> new_enumerator

---

Calls the block, if given, with each element; replaces the element with
the block's return value:
    a = [:foo, 'bar', 2]
    a.map! { |element| element.class } # => [Symbol, String, Integer]

Returns a new Enumerator if no block given:
    a = [:foo, 'bar', 2]
    a1 = a.map!
    a1 # => #<Enumerator: [:foo, "bar", 2]:map!>

Array#collect! is an alias for Array#map!.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.