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



250
251
252
253
254
255
256
257
258
# File 'lib/redmine/scm/adapters/abstract_adapter.rb', line 250

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