# File lib/tree.rb, line 380 def siblings return nil if isRoot? if block_given? for sibling in parent.children yield sibling if sibling != self end else siblings = [] parent.children {|sibling| siblings << sibling if sibling != self} siblings end end