Sha256: c88e1ab7d6bf2167800a4ed9c4e12d0aaae8c2459b3dcd31be475ab8a8d97067

Contents?: true

Size: 518 Bytes

Versions: 2

Compression:

Stored size: 518 Bytes

Contents

module Path
  def tsv(*args, **kwargs, &block)
    found = produce_and_find('tsv')
    TSV.open(found, *args, **kwargs, &block)
  end

  def tsv_options(options = {})
    self.open do |stream|
      TSV::Parser.new(stream, **options).options
    end
  end

  def index(*args, **kwargs, &block)
    found = produce_and_find('tsv')
    TSV.index(found, *args, **kwargs, &block)
  end

  def identifier_file_path
    if self.dirname.identifiers.exists?
      self.dirname.identifiers
    else
      nil
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
scout-gear-10.7.3 lib/scout/tsv/path.rb
scout-gear-10.7.2 lib/scout/tsv/path.rb