Sha256: feee0b97327b5ba4f7be905dfbb65545694961fadd28c2ffcd296acf32b5cbd7
Contents?: true
Size: 309 Bytes
Versions: 1
Compression:
Stored size: 309 Bytes
Contents
module Chkex class FileHandler def self.read_list(file_path) # file_path is actually a URL, not a file, don't try to open it return file_path unless File.file?(file_path) raise Chkex::FileNotFound unless File.exist?(file_path) File.read(file_path).split("\n") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chkex-0.1.0 | lib/chkex/file_handler.rb |