method

safe_sort

Importance_0
safe_sort(array) private

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/matchers/match_array.rb, line 36
        def safe_sort(array)
          array.all?{|item| item.respond_to?(:<=>)} ? array.sort : array
        end
Register or log in to add new notes.