tinggi pohon di ruby

def size
    size=1
    size [email protected] unless @lchild.nil?
    size [email protected] unless @richild.nil?
    size
  end
Brave Batfish