Class: Hbc::CaskLoader::FromTapPathLoader

Inherits:
FromPathLoader show all
Defined in:
Library/Homebrew/cask/lib/hbc/cask_loader.rb

Direct Known Subclasses

FromTapLoader

Instance Attribute Summary collapse

Attributes inherited from FromPathLoader

#path, #token

Attributes inherited from FromContentLoader

#content

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from FromPathLoader

#load

Methods inherited from FromContentLoader

#load

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

#tapObject (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