Class: Hobix::Search::Simple::Contents

Inherits:
Array
  • Object
show all
Defined in:
lib/hobix/search/simple.rb

Instance Method Summary collapse

Methods inherited from Array

#uniq_c

Instance Method Details

#latest_mtimeObject



8
9
10
11
12
13
14
15
# File 'lib/hobix/search/simple.rb', line 8

def latest_mtime
  latest_mtime = Time.at(0)
  each do |item|
    if(item.mtime > latest_mtime)
      latest_mtime = item.mtime
    end
  end
end