Class: Gamefic::Query::Descendants
- Defined in:
- lib/gamefic/query/descendants.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#accept?, #ambiguous?, #include?, #initialize, #precision, #rank, #resolve, #signature
Constructor Details
This class inherits a constructor from Gamefic::Query::Base
Instance Method Details
#context_from(subject) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/gamefic/query/descendants.rb', line 4 def context_from(subject) result = [] children = super result.concat children children.each { |c| result.concat subquery_accessible(c) } result end |