Skip to content

Commit 9dbf716

Browse files
committed
Update yard docs.
1 parent 9798d9f commit 9dbf716

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

Diff for: example-files/frame-title-frame.jsonld

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"@context": [
3+
{
4+
"@language": "en"
5+
},
6+
{
7+
"title": {
8+
"@id": "dct:title"
9+
},
10+
"titles": {
11+
"@id": "dct:title",
12+
"@container": "@language"
13+
}
14+
}
15+
]
16+
}

Diff for: example-files/frame-title.jsonld

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"@context": [
3+
{
4+
"@language": "en"
5+
},
6+
{
7+
"title": {
8+
"@id": "dct:title"
9+
},
10+
"titles": {
11+
"@id": "dct:title",
12+
"@container": "@language"
13+
}
14+
}
15+
],
16+
"title": "myTitle"
17+
}

Diff for: lib/json/ld/flatten.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def create_node_map(element, graph_map,
202202
# * Deserialize the key into a map, and re-serialize the value of `@id`.
203203
# * If the map contains an entry with that value (after re-canonicalizing, as appropriate), and the associated antry has a item which matches the non-`@id` item from the map, the node is used to create an `@annotation` entry within that value.
204204
#
205-
# @param [Hash{String => Hash}] input
205+
# @param [Hash{String => Hash}] node_map
206206
# @return [Hash{String => Hash}]
207207
def create_annotations(node_map)
208208
node_map.keys.

0 commit comments

Comments
 (0)