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

prepend

        # Array.prepend

(from ruby core)
---
    prepend(*args)

---

Prepends the given `objects` to `self`:
    a = [:foo, 'bar', 2]
    a.unshift(:bam, :bat) # => [:bam, :bat, :foo, "bar", 2]

Array#prepend is an alias for Array#unshift.

Related: #push, #pop, #shift.


(This method is an alias for Array#unshift.)

Prepends the given `objects` to `self`:
    a = [:foo, 'bar', 2]
    a.unshift(:bam, :bat) # => [:bam, :bat, :foo, "bar", 2]

Array#prepend is an alias for Array#unshift.

Related: #push, #pop, #shift.



      

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.