Skip to content
This repository
tag: v4.1.0.beta1
Akshay Vishnoi November 30, 2013
file 7 lines (6 sloc) 0.258 kb
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
Something went wrong with that request. Please try again.