Class: Hbc::CaskLoader::FromTapPathLoader
- Inherits:
-
FromPathLoader
- Object
- FromContentLoader
- FromPathLoader
- Hbc::CaskLoader::FromTapPathLoader
- Defined in:
- Library/Homebrew/cask/lib/hbc/cask_loader.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#tap ⇒ Object
readonly
Returns the value of attribute tap.
Attributes inherited from FromPathLoader
Attributes inherited from FromContentLoader
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tap_path) ⇒ FromTapPathLoader
constructor
A new instance of FromTapPathLoader.
Methods inherited from FromPathLoader
Methods inherited from FromContentLoader
Constructor Details
#initialize(tap_path) ⇒ FromTapPathLoader
103 104 105 106 |
# File 'Library/Homebrew/cask/lib/hbc/cask_loader.rb', line 103 def initialize(tap_path) @tap = Tap.from_path(tap_path) super tap_path end |
Instance Attribute Details
#tap ⇒ Object (readonly)
Returns the value of attribute tap
101 102 103 |
# File 'Library/Homebrew/cask/lib/hbc/cask_loader.rb', line 101 def tap @tap end |
Class Method Details
.can_load?(ref) ⇒ Boolean
97 98 99 |
# File 'Library/Homebrew/cask/lib/hbc/cask_loader.rb', line 97 def self.can_load?(ref) ref.to_s.match?(HOMEBREW_TAP_PATH_REGEX) && super end |