Module: Homebrew::FastBootRequire Private

Defined in:
standalone/init.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.

Constant Summary collapse

ARCHDIR =

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

RbConfig::CONFIG["archdir"].freeze
RUBYLIBDIR =

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

RbConfig::CONFIG["rubylibdir"].freeze

Class Method Summary collapse

Class Method Details

.from_archdir(feature) ⇒ Object

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.



36
37
38
# File 'standalone/init.rb', line 36

def self.from_archdir(feature)
  require(File.join(ARCHDIR, feature.to_s))
end

.from_rubylibdir(feature) ⇒ Object

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.



40
41
42
# File 'standalone/init.rb', line 40

def self.from_rubylibdir(feature)
  require(File.join(RUBYLIBDIR, "#{feature}.rb"))
end