Class: GraphViz::FamilyTree::Sibling
- Defined in:
- lib/graphviz/family_tree/sibling.rb
Instance Method Summary collapse
-
#initialize(bns, parents) ⇒ Sibling
constructor
A new instance of Sibling.
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 |