Class: Trailer_record

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

Overview

Internal representation of the GEDCOM TRLR record that terminates transmissions. The Trailer_record class is just a place marker to ensure we have encountered a termination record in the GEDCOM file.

=TRAILER:= 0 TRLR 1:1 At level 0, specifies the end of a GEDCOM transmission.

Instance Attribute Summary

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, #to_s_ordered, #to_s_r, #token_to_s, #xref_check

Constructor Details

#initialize(*a) ⇒ Trailer_record

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



15
16
17
18
19
20
# File 'lib/gedcom/trailer_record.rb', line 15

def initialize(*a)
  super(*a)
  @this_level = [ [:nodata, "TRLR", nil] ]
  @sub_level =  [ #level + 1
                ]
end