class Gamefic::Query::Family


be ‘accessible` to be included in the query.
Entities other than the subject’s parent and immediate children need to
descendants.
Query the subject’s ascendants, descendants, siblings, and siblings’

def match_sibling_branches(subject)

def match_sibling_branches(subject)
  Siblings.span(subject).flat_map do |child|
    [child] + subquery_accessible(child)
  end
end

def span(subject)

def span(subject)
  Ascendants.span(subject) + Descendants.span(subject) + match_sibling_branches(subject)
end