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

unshift

        # Array.unshift

(from ruby core)
---
    array.unshift(*objects) -> self

---

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.