Class: Redmine::Scm::Adapters::Revisions

Inherits:
Array
  • Object
show all
Defined in:
lib/redmine/scm/adapters/abstract_adapter.rb

Overview

Since:

  • 0.5.1

Instance Method Summary collapse

Methods included from Diffable

#diff, #patch, #replacenextlarger, #reverse_hash

Instance Method Details

#latestObject



353
354
355
356
357
358
359
360
361
# File 'lib/redmine/scm/adapters/abstract_adapter.rb', line 353

def latest
  sort {|x,y|
    unless x.time.nil? or y.time.nil?
      x.time <=> y.time
    else
      0
    end
  }.last
end