2020-10-10 14:16:11 +02:00
|
|
|
# typed: strict
|
2019-04-19 15:38:03 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-08-14 11:55:39 -07:00
|
|
|
module FormulaCellarChecks
|
2020-10-28 18:49:10 +11:00
|
|
|
extend T::Sig
|
|
|
|
sig { params(filename: Pathname).returns(T::Boolean) }
|
2018-08-14 11:55:39 -07:00
|
|
|
def valid_library_extension?(filename)
|
|
|
|
generic_valid_library_extension?(filename) || filename.basename.to_s.include?(".so.")
|
|
|
|
end
|
|
|
|
end
|