lib/sparql/algebra/operator/ucase.rb in sparql-1.1.5 vs lib/sparql/algebra/operator/ucase.rb in sparql-1.1.6
- old
+ new
@@ -20,10 +20,10 @@
# the operand
# @return [RDF::Literal] literal of same type
# @raise [TypeError] if the operand is not a literal value
def apply(operand)
case operand
- when RDF::Literal then RDF::Literal(operand.to_s.upcase, :datatype => operand.datatype, :language => operand.language)
+ when RDF::Literal then RDF::Literal(operand.to_s.upcase, datatype: operand.datatype, language: operand.language)
else raise TypeError, "expected an RDF::Literal::Numeric, but got #{operand.inspect}"
end
end
end # UCase
end # Operator