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

- old
+ new

@@ -7,10 +7,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'] == 'NodeConstraint' super end #