Module: InterMine::PathQuery::ObjectConstraint
- Included in:
- ListConstraint
- Defined in:
- lib/intermine/query.rb
Instance Method Summary collapse
Instance Method Details
#validate ⇒ Object
1108 1109 1110 1111 1112 |
# File 'lib/intermine/query.rb', line 1108 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 |