class Gamefic::Query::Siblings
Query
the subject’s siblings (i.e., entities with the same parent).
Public Instance Methods
Source
# File lib/gamefic/query/siblings.rb, line 7 def span(subject) (subject.parent&.children || []) - [subject] end
Query
the subject’s siblings (i.e., entities with the same parent).
# File lib/gamefic/query/siblings.rb, line 7 def span(subject) (subject.parent&.children || []) - [subject] end