Method: InterMine::PathQuery::Query#set_logic
- Defined in:
- lib/intermine/query.rb
#set_logic(value) ⇒ Object Also known as: constraintLogic=
Set the logic to the given value.
The value will be parsed for consistency is it is a logic string.
Returns self to support chaining.
867 868 869 870 871 872 873 874 |
# File 'lib/intermine/query.rb', line 867 def set_logic(value) if value.is_a?(LogicGroup) @logic = value else @logic = @logic_parser.parse_logic(value) end return self end |