lib/ld/patch.rb in ld-patch-0.1.0 vs lib/ld/patch.rb in ld-patch-0.1.1
- old
+ new
@@ -21,11 +21,13 @@
# @example
# query = LD::Patch.parse("Add { <http://example.org/s2> <http://example.org/p2> <http://example.org/o2> } .")
#
# @param [IO, StringIO, String, #to_s] input
# @param [Hash{Symbol => Object}] options
- # @return [Object]
- # The parsed Patch
+ # @option options [#to_s] :base_uri (nil)
+ # the base URI to use when resolving relative URIs
+ # @option (see LD::Patch::Parser#initialize)
+ # @return [SPARQL::Algebra::Operator] The executable parsed Patch
def self.parse(input, options = {})
LD::Patch::Parser.new(input, options).parse
end
class Error < StandardError