Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.559 kb
$:.unshift File.dirname(__FILE__)
require 'rubygems'
require 'ruby-fs-stack'
require 'authenticate'
require 'logger'
$visited_ids = []
def print_pedigree(person,level = 0)
puts ' '*level + person.full_name + " (#{person.id})"
$visited_ids << person.id
print_pedigree person.father, level+1 if person.father && !$visited_ids.include?(person.father.id)
print_pedigree person.mother, level+1 if person.mother && !$visited_ids.include?(person.mother.id)
end
pedigree = Marshal.load(File.read('pedigree_marshalled.txt'))
print_pedigree(pedigree.root)
Jump to Line
Something went wrong with that request. Please try again.