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

- old
+ new

@@ -32,10 +32,10 @@ # the resulting solution sequence # @see http://www.w3.org/TR/rdf-sparql-query/#sparqlAlgebra def execute(queryable, options = {}, &block) debug(options) {"Union"} @solutions = RDF::Query::Solutions(operands.inject([]) do |memo, op| - solns = op.execute(queryable, options.merge(:depth => options[:depth].to_i + 1)) + solns = op.execute(queryable, options.merge(depth: options[:depth].to_i + 1)) debug(options) {"=> (op) #{solns.inspect}"} memo + solns end) debug(options) {"=> #{@solutions.inspect}"} @solutions.each(&block) if block_given?