We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
supports?
1 parent fcde800 commit a889ba9Copy full SHA for a889ba9
1 file changed
lib/rdf/mixin/writable.rb
@@ -130,7 +130,7 @@ def insert_statements(statements)
130
if statement.embedded? && respond_to?(:supports?) && !supports?(:quoted_triples)
131
raise ArgumentError, "Writable does not support quoted triples"
132
end
133
- if statement.object && statement.object.literal? && statement.object.direction? && !supports?(:base_direction)
+ if statement.object && statement.object.literal? && statement.object.direction? && respond_to?(:supports?) && !supports?(:base_direction)
134
raise ArgumentError, "Writable does not support directional languaged-tagged strings"
135
136
insert_statement(statement)
0 commit comments