Class: Hbc::CaskLoader::FromInstanceLoader

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cask) ⇒ FromInstanceLoader



139
140
141
# File 'Library/Homebrew/cask/lib/hbc/cask_loader.rb', line 139

def initialize(cask)
  @cask = cask
end

Instance Attribute Details

#caskObject (readonly)

Returns the value of attribute cask



133
134
135
# File 'Library/Homebrew/cask/lib/hbc/cask_loader.rb', line 133

def cask
  @cask
end

Class Method Details

.can_load?(ref) ⇒ Boolean



135
136
137
# File 'Library/Homebrew/cask/lib/hbc/cask_loader.rb', line 135

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

Instance Method Details

#loadObject



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

def load
  cask
end