123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Core::Ordering::RecentlyModified Private

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: rspec-core/lib/rspec/core/ordering.rb

Overview

Orders items by modification time (most recent modified first).

Instance Method Summary

Instance Method Details

#order(list)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/ordering.rb', line 64

def order(list)
  list.sort_by { |item| -File.mtime(item.[:absolute_file_path]).to_i }
end