2022-11-20 14:27:28 -08:00
|
|
|
# typed: strict
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2025-06-21 21:34:20 -04:00
|
|
|
module OS
|
|
|
|
module Mac
|
|
|
|
module Sandbox
|
|
|
|
module ClassMethods
|
|
|
|
extend T::Helpers
|
|
|
|
|
|
|
|
requires_ancestor { T.class_of(::Sandbox) }
|
|
|
|
|
|
|
|
sig { returns(T::Boolean) }
|
|
|
|
def available?
|
|
|
|
File.executable?(::Sandbox::SANDBOX_EXEC)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2022-11-20 14:27:28 -08:00
|
|
|
end
|
|
|
|
end
|
2025-06-21 21:34:20 -04:00
|
|
|
|
|
|
|
Sandbox.singleton_class.prepend(OS::Mac::Sandbox::ClassMethods)
|