Skip to content

Commit ee5e305

Browse files
committed
Update documentation on URI#join and URI#/ to clarify how arguments are treated.
Fixes #371.
1 parent 7d0ad9c commit ee5e305

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/rdf/model/uri.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def canonicalize!
407407
# @see <http://tools.ietf.org/html/rfc3986#section-5.2>
408408
# @see RDF::URI#/
409409
# @see RDF::URI#+
410-
# @param [Array<String, RDF::URI, #to_s>] uris
410+
# @param [Array<String, RDF::URI, #to_s>] uris absolute or relative URIs.
411411
# @return [RDF::URI]
412412
# @see http://tools.ietf.org/html/rfc3986#section-5.2.2
413413
# @see http://tools.ietf.org/html/rfc3986#section-5.2.3
@@ -458,6 +458,8 @@ def join(*uris)
458458
# this method does not perform any normalization, removal of spurious
459459
# paths, or removal of parent directory references `(/../)`.
460460
#
461+
# When `fragment` is a path segment containing a colon, best practice is to prepend a `./` and use {#join}, which resolves dot-segments.
462+
#
461463
# See also `#+`, which concatenates the string forms of two URIs without
462464
# any sort of checking or processing.
463465
#

0 commit comments

Comments
 (0)