Lines Matching refs:or
163 # or an Array and returns an Array of matching nodes
218 (node.node_type != :processing_instruction) or
237 new_nodeset += node.children if nt == :element or nt == :document
319 if result.size > 0 and result.inject(false) {|k,s| s or k}
357 node.children ) if nt == :element or nt == :document
409 if (node.node_type == :element or node.node_type == :attribute)
431 # :and, :or, :eq, :neq, :lt, :lteq, :gt, :gteq
432 # TODO: Special case for :or and :and -- not evaluate the right
434 # :or and false for :and).
435 when :eq, :neq, :lt, :lteq, :gt, :gteq, :or
552 d_o_s( p, n.children, x ) if nt == :element or nt == :document and n.children.size > 0
625 if node.parent.nil? or node.parent.class == Document
663 if node.parent.nil? or node.parent.class == Document
693 elsif set1.size == 0 or set2.size == 0
718 if set1.kind_of? Array or set2.kind_of? Array
744 # If op is = or !=
753 if s1 == 'true' or s1 == 'false' or s2 == 'true' or s2 == 'false'
759 if op == :eq or op == :neq
760 if s1 =~ /^\d+(\.\d+)?$/ or s2 =~ /^\d+(\.\d+)?$/
796 when :or
797 a or b