class Gamefic::Scope::Siblings

A query scope that matches the entity’s siblings, i.e., the other entities that share its parent.

Public Instance Methods

matches() click to toggle source
# File lib/gamefic/scope/siblings.rb, line 9
def matches
  context.parent.children - [context]
end