class NdrImport::File::Vcf

This class is a vcf file handler that returns a single table.

Private Instance Methods

rows() { |parse| ... } click to toggle source
# File lib/ndr_import/file/vcf.rb, line 13
def rows(&block)
  return enum_for(:rows) unless block

  ::File.read(@filename).each_line do |line|
    next if line =~ /^##/

    yield BioVcf::VcfLine.parse(line)
  end
end