blob: 16a6789f8d0cbc38a3e11d0fae93975c5c6d133c (
plain) (
blame)
1
2
3
4
5
6
7
|
class Array
# 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
end
|