Class: Gamefic::Query::Parent

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

Overview

Query the subject’s parent.

Instance Attribute Summary

Attributes inherited from Base

#arguments

Instance Method Summary collapse

Methods inherited from Base

#accept?, #bind, #filter, #initialize, #inspect, #name, plain, #precision, #select, span

Constructor Details

This class inherits a constructor from Gamefic::Query::Base

Instance Method Details

#span(subject) ⇒ Object



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

def span(subject)
  [subject.parent].compact
end