Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
Use Statement#to_h instead of Statement#to_hash.
Browse files Browse the repository at this point in the history
Relates to #4.
  • Loading branch information
gkellogg committed Nov 4, 2017
1 parent 8235a23 commit 5b630a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdf/do.rb
Expand Up @@ -309,7 +309,7 @@ def count
def query_pattern(pattern, options = {}, &block)
return enum_for(:query_pattern, pattern, options) unless block_given?
@nodes = {} # reset cache. FIXME this should probably be in Node.intern
reader = @adapter.query(self,pattern.to_hash)
reader = @adapter.query(self, pattern.to_h)
while reader.next!
yield RDF::Statement.new(
subject: unserialize(reader.values[0]),
Expand Down

0 comments on commit 5b630a3

Please sign in to comment.