Class: Cask::CaskLoader::FromInstanceLoader

Inherits:
Object
  • Object
show all
Defined in:
brew/Library/Homebrew/cask/cask_loader.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cask) ⇒ FromInstanceLoader

Returns a new instance of FromInstanceLoader



149
150
151
# File 'brew/Library/Homebrew/cask/cask_loader.rb', line 149

def initialize(cask)
  @cask = cask
end

Instance Attribute Details

#caskObject (readonly)

Returns the value of attribute cask



143
144
145
# File 'brew/Library/Homebrew/cask/cask_loader.rb', line 143

def cask
  @cask
end

Class Method Details

.can_load?(ref) ⇒ Boolean

Returns:

  • (Boolean)


145
146
147
# File 'brew/Library/Homebrew/cask/cask_loader.rb', line 145

def self.can_load?(ref)
  ref.is_a?(Cask)
end

Instance Method Details

#loadObject



153
154
155
# File 'brew/Library/Homebrew/cask/cask_loader.rb', line 153

def load
  cask
end