lib/gedcom/family_record.rb
#Returns an array of children, or if a block is present, yields them one by one.
Returns an array of children, or if a block is present, yields them one by one.
Returns an array of children or if a block is present yields them one by one .
def children
    if @child_ref != nil
      children = []
      @child_ref.each do |c| 
        if (child = find(c.index, c.xref_value)) != nil
          yield child if block_given?
          children << c
        end
      end
      return children if children.length > 0
    end
    return nil
  end
def children if @child_ref != nil children = [ ] @child_ref . each do | c | if ( child = find ( c . index , c . xref_value ) ) != nil yield child if block_given? children << c end end return children if children . length > 0 end return nil end
Returns an array of children, or if a block is present, yields them one by one.
Returns an array of children or if a block is present yields them one by one .