Module: InterMine::PathQuery::ObjectConstraint

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

Instance Method Summary collapse

Instance Method Details

#validateObject



1112
1113
1114
1115
1116
# File 'lib/intermine/query.rb', line 1112

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