lib/tdp/application.rb
# True if one of the files in TDP_FILES is in the current directory.
# If a match is found, it is copied into @tdp_file.
True if one of the files in TDP_FILES is in the current directory.
If a match is found, it is copied into @tdp_file.
True if one of the files in TDP_FILES is in the current directory . If a match is found it is copied into @tdp_file .
def have_tdp_file
      @tdp_files.each do |fn|
        if File.exist?(fn)
          others = Dir.glob(fn, File::FNM_CASEFOLD)
          return others.size == 1 ? others.first : fn
        elsif fn == ''
          return fn
        end
      end
      return nil
    end
def have_tdp_file @tdp_files . each do | fn | if File . exist? ( fn ) others = Dir . glob ( fn , File :: FNM_CASEFOLD ) return others . size == 1 ? others . first : fn elsif fn == '' return fn end end return nil end
True if one of the files in TDP_FILES is in the current directory.
True if one of the files in TDP_FILES is in the current directory .