Class: Xref
- Inherits:
 - 
      Object
      
        
- Object
 - Xref
 
 
- Defined in:
 - lib/gedcom/xref.rb
 
Overview
Utility class just to make referencing xrefs clearer.
Instance Attribute Summary collapse
- 
  
    
      #index  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute index.
 - 
  
    
      #xref_value  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute xref_value.
 
Instance Method Summary collapse
- 
  
    
      #initialize(index, xref_value)  ⇒ Xref 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Xref.
 
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
#index ⇒ Object
Returns the value of attribute index.
      4 5 6  | 
    
      # File 'lib/gedcom/xref.rb', line 4 def index @index end  | 
  
#xref_value ⇒ Object
Returns the value of attribute xref_value.
      4 5 6  | 
    
      # File 'lib/gedcom/xref.rb', line 4 def xref_value @xref_value end  |