We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
URI#query
1 parent b3a6504 commit 11389f2Copy full SHA for 11389f2
1 file changed
lib/rdf/model/uri.rb
@@ -1219,13 +1219,7 @@ def query_values=(value)
1219
return
1220
end
1221
1222
- value = if value.respond_to?(:to_h)
1223
- value.to_h
1224
- elsif value.respond_to?(:to_hash)
1225
- value.to_hash
1226
- else
1227
- value
1228
- end
+ value = value.to_hash if value.respond_to?(:to_hash)
1229
self.query = case value
1230
when Array, Hash
1231
value.map do |(k,v)|
0 commit comments