Sha256: 9853b0bb042598425699268fab94e949560297e397537bfafa15657089e51302

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

module MoreCoreExtensions
  module StableSorting
    def self.included(klass)
      klass.class_eval do
        # <b>DEPRECATED:</b> Please use <tt>tabular_sort</tt> instead.
        def stable_sort_by(*args)
          warn "[DEPRECATION] `stable_sort_by` is deprecated.  Please use `Array#tabular_sort` instead."
          to_a.tabular_sort(*args)
        end
      end
    end
  end
end

Enumerable.send(:include, MoreCoreExtensions::StableSorting)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
more_core_extensions-3.8.0 lib/more_core_extensions/core_ext/enumerable/sorting.rb