Class: Gamefic::Query::Parent

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

Constant Summary

Constants included from Gamefic

DOWN, EAST, NORTH, NORTHEAST, NORTHWEST, SOUTH, SOUTHEAST, SOUTHWEST, UP, VERSION, WEST

Instance Attribute Summary

Attributes inherited from Base

#arguments

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_specificityObject



3
4
5
# File 'lib/gamefic/query/parent.rb', line 3

def base_specificity
  30
end

#context_from(subject) ⇒ Object



6
7
8
# File 'lib/gamefic/query/parent.rb', line 6

def context_from(subject)
  [subject.parent]
end