Class: GFA::Record::Header

Inherits:
GFA::Record show all
Defined in:
lib/gfa/record/header.rb

Constant Summary collapse

CODE =
:H
REQ_FIELDS =
[]
OPT_FIELDS =
{
  VN: :Z # Version number
}

Constants inherited from GFA::Record

CODES, TYPES

Instance Attribute Summary

Attributes inherited from GFA::Record

#fields

Instance Method Summary collapse

Methods inherited from GFA::Record

#[], [], #code, code_class, #dup, #empty?, #eql?, #hash, name_class, #to_s, #type

Constructor Details

#initialize(*opt_fields) ⇒ Header

Returns a new instance of Header.



10
11
12
13
# File 'lib/gfa/record/header.rb', line 10

def initialize(*opt_fields)
  @fields = {}
  opt_fields.each{ |f| add_opt_field(f, OPT_FIELDS) }
end