Class: GraphViz::FamilyTree::Sibling

Inherits:
Object
  • Object
show all
Defined in:
lib/graphviz/family_tree/sibling.rb

Instance Method Summary collapse

Constructor Details

#initialize(bns, parents) ⇒ Sibling

Returns a new instance of Sibling.



4
5
6
7
8
9
10
# File 'lib/graphviz/family_tree/sibling.rb', line 4

def initialize( bns, parents )
  @brothers_and_sisters = bns
  @brothers_and_sisters.each do |person|
    person.sibling = self
  end
  @parents = parents
end