Class: Gedcom_record
- Inherits:
-
GEDCOMBase
- Object
- GEDCOMBase
- Gedcom_record
- Defined in:
- lib/gedcom/gedcom_record.rb
Overview
Internal representation of the GEDCOM GEDC record type in a HEAD record.
=HEADER:= n HEAD 1:1 … +1 GEDC 1:1 +2 VERS <VERSION_NUMBER> 1:1 +2 FORM <GEDCOM_FORM> 1:1 …
==VERSION_NUMBER:= An identifier that represents the version level changed by the creators of the product.
==GEDCOM_FORM:= Size=14:20 [ LINEAGE-LINKED ] The GEDCOM form used to construct this transmission. There maybe other forms used such as CommSoft's “EVENT_LINEAGE_LINKED” but these specifications define only the LINEAGELINKED Form. Systems will use this value to specify GEDCOM compatible with these specifications.
The attributes are all arrays for the level +1 tags/records. * Those ending in ref are GEDCOM XREF index keys * Those ending in record are array of classes of that type. * The remainder are arrays of attributes that could be present in this record.
Instance Attribute Summary collapse
-
#encoding_format ⇒ Object
Returns the value of attribute encoding_format.
-
#note_citation_record ⇒ Object
Returns the value of attribute note_citation_record.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes inherited from GEDCOMBase
Instance Method Summary collapse
-
#initialize(*a) ⇒ Gedcom_record
constructor
new sets up the state engine arrays @this_level and @sub_level, which drive the to_gedcom method generating GEDCOM output.
Methods inherited from GEDCOMBase
#changed, #changed?, #created?, #find, #locked?, no_tabs, #private?, #save, tabs, #to_db, #to_gedcom, #to_s, #to_s_ordered, #to_s_r, #token_to_s, #xref_check
Constructor Details
#initialize(*a) ⇒ Gedcom_record
new sets up the state engine arrays @this_level and @sub_level, which drive the to_gedcom method generating GEDCOM output.
35 36 37 38 39 40 41 42 43 |
# File 'lib/gedcom/gedcom_record.rb', line 35 def initialize(*a) super(*a) @this_level = [ [:nodata, "GEDC", nil] ] @sub_level = [ #level + 1 [ :print, "VERS", :version], [ :print, "FORM", :encoding_format], [ :walk, nil, :note_citation_record], ] end |
Instance Attribute Details
#encoding_format ⇒ Object
Returns the value of attribute encoding_format.
29 30 31 |
# File 'lib/gedcom/gedcom_record.rb', line 29 def encoding_format @encoding_format end |
#note_citation_record ⇒ Object
Returns the value of attribute note_citation_record.
30 31 32 |
# File 'lib/gedcom/gedcom_record.rb', line 30 def note_citation_record @note_citation_record end |
#version ⇒ Object
Returns the value of attribute version.
29 30 31 |
# File 'lib/gedcom/gedcom_record.rb', line 29 def version @version end |