lib/dry/schema/compiler.rb in dry-schema-1.4.3 vs lib/dry/schema/compiler.rb in dry-schema-1.5.0
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
-require 'dry/logic/rule_compiler'
-require 'dry/schema/namespaced_rule'
-require 'dry/schema/predicate_registry'
+require "dry/logic/rule_compiler"
+require "dry/schema/namespaced_rule"
+require "dry/schema/predicate_registry"
module Dry
module Schema
# Extended rule compiler used internally by the DSL
#
@@ -33,10 +33,10 @@
# @param [Hash] opts
#
# @return [NamespacedRule]
#
# @api private
- def visit_namespace(node, opts = EMPTY_HASH)
+ def visit_namespace(node, _opts = EMPTY_HASH)
namespace, rest = node
NamespacedRule.new(namespace, visit(rest))
end
# Return true if a given predicate is supported by this compiler