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

- old
+ new

@@ -6,10 +6,10 @@ ## # Creates an operator instance from a parsed ShExJ representation # @param (see Operator#from_shexj) # @return [Operator] - def self.from_shexj(operator, options = {}) + def self.from_shexj(operator, **options) raise ArgumentError unless operator.is_a?(Hash) && operator['type'] == 'EachOf' raise ArgumentError, "missing expressions in #{operator.inspect}" unless operator.has_key?('expressions') super end