class Page

def inherits_part?(name)

def inherits_part?(name)
  !part?(name) && ancestors.any? { |page| page.part?(name) }
end