Module: FSR::App::FileMethods
- Included in:
- PlayAndGetDigits, Playback
- Defined in:
- lib/fsr/file_methods.rb
Instance Method Summary collapse
Instance Method Details
#test_files(*files) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/fsr/file_methods.rb', line 4 def test_files *files files.each do |file| next unless file =~ /^\// next if File.open(file){|io| io.stat.file? } raise(ArgumentError, "No such file - #{file}") end true end |