lib/sparql/algebra/operator/and.rb in sparql-1.1.5 vs lib/sparql/algebra/operator/and.rb in sparql-1.1.6

- old
+ new

@@ -40,16 +40,16 @@ # options passed from query # @return [RDF::Literal::Boolean] `true` or `false` # @raise [TypeError] if the operands could not be coerced to boolean literals def evaluate(bindings, options = {}) begin - left = boolean(operand(0).evaluate(bindings, options.merge(:depth => options[:depth].to_i + 1))).true? + left = boolean(operand(0).evaluate(bindings, options.merge(depth: options[:depth].to_i + 1))).true? rescue TypeError left = nil end begin - right = boolean(operand(1).evaluate(bindings, options.merge(:depth => options[:depth].to_i + 1))).true? + right = boolean(operand(1).evaluate(bindings, options.merge(depth: options[:depth].to_i + 1))).true? rescue TypeError right = nil end # From http://www.w3.org/TR/rdf-sparql-query/#evaluation