Class: Gamefic::Query::External

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

Constant Summary

Constants inherited from Base

Base::NEST_REGEXP

Instance Attribute Summary

Attributes inherited from Base

#arguments

Instance Method Summary collapse

Methods inherited from Base

#accept?, #ambiguous?, #include?, #precision, #rank, #resolve, #signature

Constructor Details

#initialize(objects, *args) ⇒ External

Returns a new instance of External.



4
5
6
7
# File 'lib/gamefic/query/external.rb', line 4

def initialize objects, *args
  super(*args)
  @objects = objects
end

Instance Method Details

#context_from(subject) ⇒ Object



9
10
11
# File 'lib/gamefic/query/external.rb', line 9

def context_from subject
  @objects
end