Class: Text_record

Inherits:
GEDCOMBase show all
Defined in:
lib/gedcom/text_record.rb

Overview

Internal representation of the GEDCOM TEXT record type.

This tag is used in SOUR and SOUR.DATA records

TEXT

n  TEXT <TEXT_FROM_SOURCE>            {0:M}
+1 [CONC | CONT ] <TEXT_FROM_SOURCE>  {0:M}

TEXT_FROM_SOURCE:= Size=1:248

A verbatim copy of any description contained within the source. This indicates notes or text that are
actually contained in the source document, not the submitter's opinion about the source. This should
be, from the evidence point of view, "what the original record keeper said" as opposed to the
researcher's interpretation. The word TEXT, in this case, means from the text which appeared in the
source record including labels.

Instance Attribute Summary collapse

Attributes inherited from GEDCOMBase

#restriction

Instance Method Summary collapse

Methods inherited from GEDCOMBase

#changed, #changed?, #created?, #find, #locked?, no_tabs, #private?, #save, tabs, #to_db, #to_gedcom, #to_s, #token_to_s

Constructor Details

#initialize(*a) ⇒ Text_record

new sets up the state engine arrays @this_level and @sub_level, which drive the to_gedcom method generating GEDCOM output.



24
25
26
27
28
29
# File 'lib/gedcom/text_record.rb', line 24

def initialize(*a)
  super(*a)
  @this_level = [ [:cont, "TEXT", :text] ]
  @sub_level =  [ #level + 1
                ]
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



19
20
21
# File 'lib/gedcom/text_record.rb', line 19

def text
  @text
end