Please sign in to comment.
Added Array#prepend as an alias for Array#unshift and Array#append as…
… an alias for Array#<< [DHH]
- Loading branch information...
Showing with 20 additions and 0 deletions.
|@@ -0,0 +1,7 @@|
|# The human way of thinking about adding stuff to the end of a list is with append|
|alias_method :append, :<<|
|# The human way of thinking about adding stuff to the beginning of a list is with prepend|
|alias_method :prepend, :unshift|