Class: Cask::CaskLoader::FromInstanceLoader Private
- Defined in:
- cask/cask_loader.rb
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(cask) ⇒ void constructor private
Constructor Details
#initialize(cask) ⇒ 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.
578 579 580 581 |
# File 'cask/cask_loader.rb', line 578 def initialize(cask) CaskLoader.odeprecated "Cask::CaskLoader::FromInstanceLoader.new", "the existing cask instance" raise CaskUnavailableError.new(cask.token, "Use the existing cask instance directly.") end |
Class Method Details
.try_new(_ref, warn: false) ⇒ nil
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.
572 573 574 575 |
# File 'cask/cask_loader.rb', line 572 def self.try_new(_ref, warn: false) CaskLoader.odeprecated "Cask::CaskLoader::FromInstanceLoader.try_new", "the existing cask instance" nil end |