Class: Gamefic::Query::Itself
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#accept?, #ambiguous?, #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 |
# File 'lib/gamefic/query/itself.rb', line 4 def context_from(subject) [subject] end |
#include?(subject, object) ⇒ Boolean
8 9 10 |
# File 'lib/gamefic/query/itself.rb', line 8 def include?(subject, object) return false unless accept?(object) and subject == object end |