Class: Cask::CaskLoader::FromTapPathLoader Private
- Inherits:
-
FromPathLoader
- Object
- FromContentLoader
- FromPathLoader
- Cask::CaskLoader::FromTapPathLoader
- Defined in:
- Library/Homebrew/cask/cask_loader.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Loads a cask from a tap path.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#tap ⇒ Object
readonly
private
Attributes inherited from FromPathLoader
Attributes inherited from FromContentLoader
Class Method Summary collapse
-
.can_load?(ref) ⇒ Boolean
private
Instance Method Summary collapse
-
#initialize(path) ⇒ FromTapPathLoader
constructor
private
A new instance of FromTapPathLoader.
Methods inherited from FromPathLoader
Methods inherited from FromContentLoader
Constructor Details
#initialize(path) ⇒ FromTapPathLoader
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of FromTapPathLoader.
133 134 135 136 |
# File 'Library/Homebrew/cask/cask_loader.rb', line 133 def initialize(path) @tap = Tap.from_path(path) super(path) end |
Instance Attribute Details
#tap ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
131 132 133 |
# File 'Library/Homebrew/cask/cask_loader.rb', line 131 def tap @tap end |