Class: Encoded_line_record
- Inherits:
-
GEDCOMBase
- Object
- GEDCOMBase
- Encoded_line_record
- Defined in:
- lib/gedcom/encoded_line_record.rb
Overview
An inline Multimedia_record uses BLOB records to hold the data. This is unusual in practice, as it bloats the GEDCOM file. Normal practice is to reference a file or URL.
BLOB BINARY_OBJECT:=
A grouping of data used as input to a multimedia system that processes binary data to represent
images, sound, and video.
MULTIMEDIA_RECORD:=
0 @XREF:OBJE@ OBJE {0:M}
...
n BLOB {1:1}
+1 CONT <ENCODED_MULTIMEDIA_LINE> {1:M}
...
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
-
#encoded_line ⇒ Object
Returns the value of attribute encoded_line.
Attributes inherited from GEDCOMBase
Instance Method Summary collapse
-
#initialize(*a) ⇒ Encoded_line_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, #token_to_s
Constructor Details
#initialize(*a) ⇒ Encoded_line_record
new sets up the state engine arrays @this_level and @sub_level, which drive the to_gedcom method generating GEDCOM output.
28 29 30 31 32 |
# File 'lib/gedcom/encoded_line_record.rb', line 28 def initialize(*a) super(*a) @this_level = [ [:nodata, "BLOB", nil ] ] @sub_level = [ [:blob, "CONT", :encoded_line ] ] end |
Instance Attribute Details
#encoded_line ⇒ Object
Returns the value of attribute encoded_line.
23 24 25 |
# File 'lib/gedcom/encoded_line_record.rb', line 23 def encoded_line @encoded_line end |