mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
13 lines
230 B
Ruby
13 lines
230 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
class Cleaner
|
|
private
|
|
|
|
extend T::Sig
|
|
sig { params(path: Pathname).returns(T.nilable(T::Boolean)) }
|
|
def executable_path?(path)
|
|
path.elf? || path.text_executable?
|
|
end
|
|
end
|