Class: Closer::Drivers::FileDetector
- Inherits:
-
Object
- Object
- Closer::Drivers::FileDetector
- Defined in:
- lib/closer/helpers/drivers/file_detector.rb
Class Method Summary collapse
Class Method Details
.apply(driver) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/closer/helpers/drivers/file_detector.rb', line 5 def self.apply(driver) driver.browser.file_detector = lambda do |args| str = args.first.to_s str if File.exist?(str) end driver end |