Class: Gamefic::Query::Parent
Overview
Query the subject’s parent.
Instance Attribute Summary
Attributes inherited from Base
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 |