Module: InterMine::PathQuery::ObjectConstraint

Included in:
ListConstraint
Defined in:
lib/intermine/query.rb

Instance Method Summary collapse

Instance Method Details

#validateObject



1016
1017
1018
1019
1020
# File 'lib/intermine/query.rb', line 1016

def validate
    if @path.elements.last.is_a?(InterMine::::AttributeDescriptor)
        raise ArgumentError, "#{self.class.name}s must be on objects or references to objects, got #{@path}"
    end
end