Class: Resource::Formula Private

Inherits:
Resource show all
Defined in:
resource.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

A resource for a formula.

Instance Attribute Summary

Attributes inherited from Resource

#checksum, #download_strategy, #livecheck, #owner, #patches, #source_modified_time

Attributes included from Downloadable

#checksum, #mirrors, #url

Instance Method Summary collapse

Methods inherited from Resource

#apply_patches, #escaped_name, #fetch, #fetch_patches, #files, #freeze, #initialize, #initialize_dup, #livecheckable?, #mirror, #patch, #prepare_patches, #sha256, #specs, #stage, #unpack, #url, #using, #version

Methods included from OnSystem::MacOSAndLinux

included

Methods included from Downloadable

#cached_download, #clear_cache, #download_strategy, #download_type, #downloaded?, #downloader, #fetch, #freeze, #initialize, #initialize_dup, #verify_download_integrity, #version

Methods included from Context

current, current=, #debug?, #quiet?, #verbose?, #with_context

Constructor Details

This class inherits a constructor from Resource

Instance Method Details

#download_nameString

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



288
289
290
# File 'resource.rb', line 288

def download_name
  name
end

#nameString

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



283
284
285
# File 'resource.rb', line 283

def name
  T.must(owner).name
end