Class: Xref

Inherits:
Object
  • Object
show all
Defined in:
lib/gedcom/xref.rb

Overview

Utility class just to make referencing xrefs clearer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index, xref_value) ⇒ Xref

Returns a new instance of Xref.



5
6
7
# File 'lib/gedcom/xref.rb', line 5

def initialize(index, xref_value)
  @index, @xref_value = index, xref_value
end

Instance Attribute Details

#indexObject

Returns the value of attribute index.



4
5
6
# File 'lib/gedcom/xref.rb', line 4

def index
  @index
end

#xref_valueObject

Returns the value of attribute xref_value.



4
5
6
# File 'lib/gedcom/xref.rb', line 4

def xref_value
  @xref_value
end