global

def each_ancestor(include_self: false, &block)

def each_ancestor(include_self: false, &block)
  return to_enum(__method__, include_self: include_self) unless block
  yield self if include_self
  scan_ancestors(&block)
  self
end