Class: Gamefic::Scope::Parent

Inherits:
Base
  • Object
show all
Defined in:
lib/gamefic/scope/parent.rb

Overview

A query scope that can only match the entity’s parent.

Instance Attribute Summary

Attributes inherited from Base

#context

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

#matchesObject



8
9
10
# File 'lib/gamefic/scope/parent.rb', line 8

def matches
  [context.parent].compact
end