
This means that formulas that are only available on one OS should only show up in the search results for the platform.
12 lines
187 B
Ruby
12 lines
187 B
Ruby
# typed: true
|
|
# frozen_string_literal: true
|
|
|
|
class Formula
|
|
undef valid_platform?
|
|
|
|
sig { returns(T::Boolean) }
|
|
def valid_platform?
|
|
requirements.none?(LinuxRequirement)
|
|
end
|
|
end
|