Module: InterMine::PathQuery::ObjectConstraint

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

Instance Method Summary collapse

Instance Method Details

#validateObject



1104
1105
1106
1107
1108
# File 'lib/intermine/query.rb', line 1104

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