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

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

Instance Method Summary collapse

Methods included from Diffable

#diff, #patch, #replacenextlarger, #reverse_hash

Instance Method Details

#latestObject



361
362
363
364
365
366
367
368
369
# File 'lib/redmine/scm/adapters/abstract_adapter.rb', line 361

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