Skip to content

Commit 034507d

Browse files
committed
Add Solutions#dup.
1 parent 8dac2da commit 034507d

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

lib/rdf/query/solutions.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,14 @@ def bindings
104104
end
105105
bindings
106106
end
107-
107+
108+
##
109+
# Duplicates each solution.
110+
# @return [RDF::Query::Solutions]
111+
def dup
112+
RDF::Query::Solutions.new(self.map(&:dup))
113+
end
114+
108115
##
109116
# Filters this solution sequence by the given `criteria`.
110117
#

0 commit comments

Comments
 (0)