Class: Gamefic::Query::Siblings
- Defined in:
- lib/gamefic/query/siblings.rb
Constant Summary
Constants included from Gamefic
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#allow_ambiguous?, #allow_many?, #execute, #initialize, #last_match_for, #match, #optional?, #signature, #specificity, #test_arguments, #validate
Constructor Details
This class inherits a constructor from Gamefic::Query::Base
Instance Method Details
#base_specificity ⇒ Object
3 4 5 |
# File 'lib/gamefic/query/siblings.rb', line 3 def base_specificity 40 end |
#context_from(subject) ⇒ Object
6 7 8 |
# File 'lib/gamefic/query/siblings.rb', line 6 def context_from(subject) (subject.parent.children - [subject]) end |