This class handles operands that represent flags. The operation evaluates to true if the property provided by the expression has the flag assigned.
Return true if the property has the flag assigned.
# File lib/taskjuggler/LogicalOperation.rb, line 226 226: def eval(expr) 227: if expr.query.is_a?(Query) 228: # This is used for Project or PTN related Queries 229: expr.query.property['flags', 0].include?(@operand1) 230: else 231: # This is used for Journal objects. 232: expr.query.flags.include?(@operand1) 233: end 234: end
# File lib/taskjuggler/LogicalOperation.rb, line 236 236: def to_s(query) 237: if query 238: if query.is_a?(Query) 239: query.property['flags', 0].include(@operand1) ? 'true' : 'false' 240: else 241: query.flags.include(@operand1) ? 'true' : 'false' 242: end 243: else 244: @operand1 245: end 246: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.