lib/rdf/query/solution.rb in rdf-1.1.16.1 vs lib/rdf/query/solution.rb in rdf-1.1.17
- old
+ new
@@ -98,12 +98,12 @@
# Enumerates over every variable in this solution.
#
# @yield [variable]
# @yieldparam [Variable]
# @return [Enumerator]
- def each_variable(&block)
+ def each_variable
@bindings.each do |name, value|
- block.call(Variable.new(name, value))
+ yield Variable.new(name, value)
end
end
##
# Returns `true` if the variable `name` is bound in this solution.