Sha256: 64bd729ab0ce2c0ad957c70b8e6afb016196ccbce99b058a1d4dd18b47993b8f
Contents?: true
Size: 355 Bytes
Versions: 49
Compression:
Stored size: 355 Bytes
Contents
# frozen_string_literal: true class Array # The human way of thinking about adding stuff to the end of a list is with append. alias_method :append, :push unless [].respond_to?(:append) # The human way of thinking about adding stuff to the beginning of a list is with prepend. alias_method :prepend, :unshift unless [].respond_to?(:prepend) end
Version data entries
49 entries across 49 versions & 8 rubygems