class Eye::Checker::FileCTime
Public Instance Methods
get_value()
click to toggle source
# File lib/eye/checker/file_ctime.rb, line 8 def get_value File.ctime(file) rescue nil end
good?(value)
click to toggle source
# File lib/eye/checker/file_ctime.rb, line 20 def good?(value) value.to_i > previous_value.to_i end
human_value(value)
click to toggle source
# File lib/eye/checker/file_ctime.rb, line 12 def human_value(value) if value == nil 'Err' else value.strftime('%H:%M') end end