Michael Cho 2d884981c2
cleaner: add types
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-11 11:46:23 -04:00

14 lines
241 B
Ruby

# typed: true
# frozen_string_literal: true
class Cleaner
private
undef executable_path?
sig { params(path: Pathname).returns(T::Boolean) }
def executable_path?(path)
path.mach_o_executable? || path.text_executable?
end
end