lib/rdf/turtle/reader.rb in rdf-turtle-3.1.1 vs lib/rdf/turtle/reader.rb in rdf-turtle-3.1.2
- old
+ new
@@ -161,10 +161,10 @@
# @param [Symbol] production
# @param [RDF::Statement] statement the subject of the statement
# @return [RDF::Statement] Added statement
# @raise [RDF::ReaderError] Checks parameter types and raises if they are incorrect if parsing mode is _validate_.
def add_statement(production, statement)
- error("Statement is invalid: #{statement.inspect.inspect}", production: produciton) if validate? && statement.invalid?
+ error("Statement is invalid: #{statement.inspect}", production: produciton) if validate? && statement.invalid?
@callback.call(statement) if statement.subject &&
statement.predicate &&
statement.object &&
(validate? ? statement.valid? : true)
end