Class: Cask::CaskLoader::FromDefaultTapPathLoader Private

Inherits:
FromTapPathLoader show all
Defined in:
cask/cask_loader.rb

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.

Loads a cask from the default tap path.

Instance Attribute Summary

Attributes inherited from FromPathLoader

#path, #token

Attributes inherited from AbstractContentLoader

#content, #tap

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from FromPathLoader

#load

Methods included from ILoader

#load

Constructor Details

#initialize(ref) ⇒ FromDefaultTapPathLoader

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 a new instance of FromDefaultTapPathLoader.



211
212
213
# File 'cask/cask_loader.rb', line 211

def initialize(ref)
  super CaskLoader.default_path(ref)
end

Class Method Details

.can_load?(ref) ⇒ 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)


207
208
209
# File 'cask/cask_loader.rb', line 207

def self.can_load?(ref)
  super CaskLoader.default_path(ref)
end