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
classiccms-0.7.3 vendor/bundle/gems/activesupport-3.2.3/lib/active_support/core_ext/array/prepend_and_append.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.12/lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-3.2.22 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.0.13 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.0.13.rc1 lib/active_support/core_ext/array/prepend_and_append.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.12/lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.0.11.1 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.0.12 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-3.2.21 lib/active_support/core_ext/array/prepend_and_append.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/core_ext/array/prepend_and_append.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/activesupport-3.2.18/lib/active_support/core_ext/array/prepend_and_append.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/core_ext/array/prepend_and_append.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.18/lib/active_support/core_ext/array/prepend_and_append.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/activesupport-3.2.18/lib/active_support/core_ext/array/prepend_and_append.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/activesupport-3.2.18/lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.0.11 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-3.2.20 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.0.10 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.0.10.rc2 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.0.10.rc1 lib/active_support/core_ext/array/prepend_and_append.rb