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.



591
592
593
594
595
# File 'lib/intermine/query.rb', line 591

def remove_constraint(code)
    @constraints.reject! do |x|
        x.respond_to?(:code) and x.code == code
    end
end