Sha256: f323af88a0e89cab89cb6380a8ab4bc386f508befcb5a501651eafa79a67ffe1

Contents?: true

Size: 257 Bytes

Versions: 18

Compression:

Stored size: 257 Bytes

Contents

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

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
motion-support-1.2.1 motion/core_ext/array/prepend_and_append.rb
motion-support-1.1.1 motion/core_ext/array/prepend_and_append.rb
motion-support-1.2.0 motion/core_ext/array/prepend_and_append.rb
motion-support-1.1.0 motion/core_ext/array/prepend_and_append.rb
motion-support-1.0.0 motion/core_ext/array/prepend_and_append.rb
motion-support-0.3.0 motion/core_ext/array/prepend_and_append.rb
motion_blender-support-0.2.8 motion/core_ext/array/prepend_and_append.rb
motion_blender-support-0.2.7 motion/core_ext/array/prepend_and_append.rb
motion-support-0.2.6 motion/core_ext/array/prepend_and_append.rb
motion-support-0.2.5 motion/core_ext/array/prepend_and_append.rb
motion-support-0.2.4 motion/core_ext/array/prepend_and_append.rb
motion-support-0.2.3 motion/core_ext/array/prepend_and_append.rb
motion-support-0.2.2 motion/core_ext/array/prepend_and_append.rb
motion-support-0.2.0 motion/core_ext/array/prepend_and_append.rb
motion_support-0.0.6 motion/core_ext/array/prepend_append.rb
motion_support-0.0.4 motion/core_ext/array/prepend_append.rb
motion_support-0.0.3 motion/core_ext/array/prepend_append.rb
motion_support-0.0.2 motion/core_ext/array/prepend_append.rb