class Dry::Schema::Messages::Abstract

def rule(name, options = {})

Other tags:
    Api: - private
def rule(name, options = {})
  tokens = {name: name, locale: options.fetch(:locale, default_locale)}
  path = rule_lookup_paths(tokens).detect { |key| key?(key, options) }
  rule = get(path, options) if path
  rule.is_a?(Hash) ? rule[:text] : rule
end