class Eye::Checker::FileCTime
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
Eye::Checker::new
# File lib/eye/checker/file_ctime.rb, line 8 def initialize(*args) super self.file = process.expand_path(file) if process && file end
Public Instance Methods
get_value()
click to toggle source
# File lib/eye/checker/file_ctime.rb, line 13 def get_value File.ctime(file) rescue nil end
good?(value)
click to toggle source
# File lib/eye/checker/file_ctime.rb, line 25 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 17 def human_value(value) if value.nil? 'Err' else value.strftime('%H:%M') end end