Sha256: 4013429c0be9ad28ec48fb32a5a3f63a25fb12232ac833dc511771fa6809c457

Contents?: true

Size: 256 Bytes

Versions: 257

Compression:

Stored size: 256 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

257 entries across 213 versions & 25 rubygems

Version Path
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/activesupport-3.2.22.5/lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-3.2.22.5 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-3.2.22.4 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-3.2.22.3 lib/active_support/core_ext/array/prepend_and_append.rb
swiss_db-1.0.0 lib/motion-support/array.rb
activesupport-3.2.22.2 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-3.2.22.1 lib/active_support/core_ext/array/prepend_and_append.rb
swiss_db-0.7.2 lib/motion-support/array.rb
swiss_db-0.7.1 lib/motion-support/array.rb
swiss_db-0.7.0 lib/motion-support/array.rb
swiss_db-0.6.8 lib/motion-support/array.rb
swiss_db-0.6.7 lib/motion-support/array.rb
swiss_db-0.6.6 lib/motion-support/array.rb
swiss_db-0.6.5 lib/motion-support/array.rb
swiss_db-0.6.3 lib/motion-support/array.rb
swiss_db-0.6.2 lib/motion-support/array.rb
swiss_db-0.6.1 lib/motion-support/array.rb
swiss_db-0.6.0 lib/motion-support/array.rb
classiccms-0.7.5 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/array/prepend_and_append.rb
classiccms-0.7.4 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/array/prepend_and_append.rb