Sha256: 574aaf928876d27f6c6e2434e7816e85e3493758fb8280eac324ea5a41c6411c

Contents?: true

Size: 258 Bytes

Versions: 160

Compression:

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

160 entries across 152 versions & 18 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/activesupport-5.0.7.1/lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.2.11.3 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.2.11.2 lib/active_support/core_ext/array/prepend_and_append.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/array/prepend_and_append.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/activesupport-4.2.11.1/lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-5.0.7.2 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.2.11.1 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-5.0.7.1 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.2.11 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-5.0.7 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.2.10 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.2.10.rc1 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-5.0.6 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-5.0.6.rc1 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-5.0.5 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-5.0.5.rc2 lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-5.0.5.rc1 lib/active_support/core_ext/array/prepend_and_append.rb
tdiary-5.0.5 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/array/prepend_and_append.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/array/prepend_and_append.rb
activesupport-4.2.9 lib/active_support/core_ext/array/prepend_and_append.rb