Module: OnSystem::MacOSAndLinux
- Included in:
- Cask::DSL, Formula, Formula, Homebrew::Service, PourBottleCheck, Resource, SoftwareSpec
- Defined in:
- on_system.rb,
on_system.rbi
Class Method Summary collapse
- .included(base) ⇒ void private
Instance Method Summary collapse
- #on_arch_conditional(arm: nil, intel: nil) ⇒ String? private
- #on_macos(&block) ⇒ T.type_parameter(:U) private
- #on_system_conditional(macos: nil, linux: nil) ⇒ Array<String, Pathname>, ... private
Class Method Details
.included(base) ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
This method returns an undefined value.
161 162 163 164 165 |
# File 'on_system.rb', line 161 def self.included(base) OnSystem.setup_arch_methods(base) OnSystem.setup_base_os_methods(base) OnSystem.setup_macos_methods(base) end |
Instance Method Details
#on_arch_conditional(arm: nil, intel: nil) ⇒ String?
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
25 |
# File 'on_system.rbi', line 25 def on_arch_conditional(arm: nil, intel: nil); end |
#on_macos(&block) ⇒ T.type_parameter(:U)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
22 |
# File 'on_system.rbi', line 22 def on_macos(&block); end |
#on_system_conditional(macos: nil, linux: nil) ⇒ Array<String, Pathname>, ...
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
15 |
# File 'on_system.rbi', line 15 def on_system_conditional(macos: nil, linux: nil); end |