Sha256: 547e22a732f81058e8007686d64697161c85cd5bb8beb2cfef0543d17e271f9e

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

require 'bamfcsv/bamfcsv'

module BAMFCSV

  def self.read(thing_to_read)
    if  String === thing_to_read
      raise Errno::ENOENT.new("#{thing_to_read} does not exist") unless File.exist? thing_to_read
      raise Errno::EISDIR.new("#{thing_to_read} is a directory") if File.directory? thing_to_read
      read_path(thing_to_read)
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bamfcsv-0.0.2 lib/bamfcsv.rb
bamfcsv-0.0.1 lib/bamfcsv.rb