Method: InterMine::PathQuery::Query#remove_constraint
- Defined in:
- lib/intermine/query.rb
#remove_constraint(code) ⇒ Object
Remove the constraint with the given code from the query. If no such constraint exists, no error will be raised.
501 502 503 504 505 |
# File 'lib/intermine/query.rb', line 501 def remove_constraint(code) @constraints.reject! do |x| x.respond_to?(:code) and x.code == code end end |