class Zeitwerk::Loader::ConstantPathValidator

:nodoc
@private

def validate!(possible_cpath)

: (String) -> String ! NameError

input to strings, so we assume strings, and we test strings.
Technically, this validation works with symbols, but API boundary restricts
def validate!(possible_cpath)
  # We do this before validating because as of this writing, TruffleRuby
  # raises TypeError if the argument has leading colons.
  possible_cpath = possible_cpath.delete_prefix('::')
  CNAME_VALIDATOR.const_defined?(possible_cpath, false)
  possible_cpath
end