Flowdock
method

safe_sort

Importance_0
RSpec latest stable (1.3.1) - 0 notes - Class: Spec::Matchers::MatchArray
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.