lib/shex/algebra.rb in shex-0.5.2 vs lib/shex/algebra.rb in shex-0.6.0

- old
+ new

@@ -48,11 +48,11 @@ # @param [Hash] operator # @param [Hash] options ({}) # @option options [RDF::URI] :base # @option options [Hash{String => RDF::URI}] :prefixes # @return [Operator] - def self.from_shexj(operator, options = {}) + def self.from_shexj(operator, **options) raise ArgumentError unless operator.is_a?(Hash) klass = case operator['type'] when 'Annotation' then Annotation when 'EachOf' then EachOf when 'IriStem' then IriStem @@ -74,10 +74,10 @@ when 'TripleConstraint' then TripleConstraint when 'Wildcard' then StemRange else raise ArgumentError, "unknown type #{operator['type'].inspect}" end - klass.from_shexj(operator, options) + klass.from_shexj(operator, **options) end end end