Class: Cask::CaskLoader::FromURILoader Private
Overview
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.
Deprecated entry points. They never discover or evaluate source files.
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(url) ⇒ void constructor private
Constructor Details
#initialize(url) ⇒ 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.
564 565 566 567 |
# File 'cask/cask_loader.rb', line 564 def initialize(url) CaskLoader.odeprecated "Cask::CaskLoader::FromURILoader.new", "Cask::CaskLoader.from_path" raise CaskUnavailableError.new(url, "Loading casks from URLs is unsupported.") 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.
558 559 560 561 |
# File 'cask/cask_loader.rb', line 558 def self.try_new(_ref, warn: false) CaskLoader.odeprecated "Cask::CaskLoader::FromURILoader.try_new", "Cask::CaskLoader.from_path" nil end |