Skip to content

Commit 2bd55c8

Browse files
committed
Specify that fromRDF can take an RDF::Enumerable as well as an array.
1 parent 4e3acf9 commit 2bd55c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/json/ld/from_rdf.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module FromTriples
88
# Generate a JSON-LD array representation from an array of `RDF::Statement`.
99
# Representation is in expanded form
1010
#
11-
# @param [Array<RDF::Statement>] input
11+
# @param [Array<RDF::Statement>, RDF::Enumerable] input
1212
# @return [Array<Hash>] the JSON-LD document in normalized form
1313
def from_statements(input)
1414
defaultGraph = {:subjects => {}, :listMap => {}, :name => ''}

0 commit comments

Comments
 (0)