Class: FileStalker
- Inherits:
-
Object
- Object
- FileStalker
- Defined in:
- lib/feed_updater.rb
Class Method Summary collapse
Class Method Details
.hunt(paths) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/feed_updater.rb', line 32 def self.hunt(paths) for path in paths if File.exists?(File.(path)) return File.(path) elsif File.exists?(File.( File.dirname(__FILE__) + path)) return File.(File.dirname(__FILE__) + path) elsif File.exists?(File.( File.dirname(__FILE__) + "/" + path)) return File.(File.dirname(__FILE__) + "/" + path) end end return nil end |