Class: Gamefic::Scope::Parent
Overview
A query scope that can only match the entity’s 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
8 9 10 |
# File 'lib/gamefic/scope/parent.rb', line 8 def matches [context.parent].compact end |