Skip to content

Commit fc8cf7e

Browse files
committed
Fix graph used to insert values into a list when not provided.
1 parent 3fe31ed commit fc8cf7e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/rdf/model/list.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ def initialize(subject: nil, graph: nil, values: nil, &block)
6868
if first || values.length > 0
6969
# Intantiate the list from values, and insert the first value using subject.
7070
values.reverse_each {|value| self.unshift(value)}
71-
graph.insert RDF::Statement(subject, RDF.first, first || RDF.nil)
72-
graph.insert RDF::Statement(subject, RDF.rest, @subject)
71+
@graph.insert RDF::Statement(subject, RDF.first, first || RDF.nil)
72+
@graph.insert RDF::Statement(subject, RDF.rest, @subject)
7373
end
7474
@subject = subject
7575
else

0 commit comments

Comments
 (0)