class Dry::Schema::NamespacedRule

@api private
but it is configured to use a message namespace
by the message compiler in situations where a schema reuses another schema
This is used internally to create rules that can be properly handled
A special rule type that is configured under a specified namespace

def ast(input = Undefined)

Other tags:
    Api: - private
def ast(input = Undefined)
  [:namespace, [namespace, rule.ast(input)]]
end

def call(input)

Other tags:
    Api: - private
def call(input)
  result = rule.call(input)
  Logic::Result.new(result.success?) { [:namespace, [namespace, result.to_ast]] }
end

def initialize(namespace, rule)

Other tags:
    Api: - private
def initialize(namespace, rule)
  @namespace = namespace
  @rule = rule
end