Class: RSpec::Core::Ordering::RecentlyModified
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/ordering.rb
Overview
Orders items by modification time (most recent modified first).
Instance Method Summary collapse
Instance Method Details
#order(list) ⇒ Object
64 65 66 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/ordering.rb', line 64 def order(list) list.sort_by { |item| -File.mtime(item.[:absolute_file_path]).to_i } end |