Module: OS::Mac::Cleanup Private

Included in:
Homebrew::Cleanup
Defined in:
extend/os/mac/cleanup.rb

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Instance Method Summary collapse

Instance Method Details

#use_system_ruby?Boolean

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.

Returns:

  • (Boolean)


8
9
10
11
12
# File 'extend/os/mac/cleanup.rb', line 8

def use_system_ruby?
  return false if Homebrew::EnvConfig.force_vendor_ruby?

  ::Homebrew::EnvConfig.developer? && ENV["HOMEBREW_USE_RUBY_FROM_PATH"].present?
end