Class: GFA::Record::Header
- Inherits:
-
GFA::Record
- Object
- GFA::Record
- GFA::Record::Header
- 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
Instance Attribute Summary
Attributes inherited from GFA::Record
Instance Method Summary collapse
-
#initialize(*opt_fields) ⇒ Header
constructor
A new instance of Header.
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 |