module OnebusawaySDK::Internal::Util::SorbetRuntimeSupport

def const_missing(name)

Parameters:
  • name (Symbol) --

Other tags:
    Api: - private
def const_missing(name)
  super unless sorbet_runtime_constants.key?(name)
  unless Object.const_defined?(:T)
    message = "Trying to access a Sorbet constant #{name.inspect} without `sorbet-runtime`."
    raise MissingSorbetRuntimeError.new(message)
  end
  sorbet_runtime_constants.fetch(name).call
end