Class: Gamefic::Scope::Siblings
- Defined in:
- lib/gamefic/scope/siblings.rb
Overview
A query scope that matches the entity’s siblings, i.e., the other entities that share its parent.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, matches, precision
Constructor Details
This class inherits a constructor from Gamefic::Scope::Base
Instance Method Details
#matches ⇒ Object
9 10 11 |
# File 'lib/gamefic/scope/siblings.rb', line 9 def matches context.parent.children - [context] end |