Class: Gnome::Wallpaper::Changer::Reloader

Inherits:
Rack::Reloader
  • Object
show all
Defined in:
lib/gnome-wallpaper-changer/reloader.rb

Instance Method Summary collapse

Instance Method Details

#safe_load(file, mtime, stderr = $stderr) ⇒ Object



7
8
9
10
11
12
# File 'lib/gnome-wallpaper-changer/reloader.rb', line 7

def safe_load file, mtime, stderr = $stderr
  if file == Controller.main_file 
    Controller.reset! 
  end 
  super 
end