18 lines
314 B
Ruby
Raw Permalink Normal View History

# typed: strict
# frozen_string_literal: true
2024-09-18 15:33:49 -07:00
module OS
module Mac
module Cleaner
private
2016-07-04 16:10:24 +01:00
2024-09-18 15:33:49 -07:00
sig { params(path: Pathname).returns(T::Boolean) }
def executable_path?(path)
path.mach_o_executable? || path.text_executable?
2024-09-13 12:22:52 -07:00
end
end
2016-07-04 16:10:24 +01:00
end
end
2024-09-05 19:56:32 -07:00
2024-09-18 15:33:49 -07:00
Cleaner.prepend(OS::Mac::Cleaner)