Class: Homebrew::FormulaStub Private
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 stub for a formula, with only the information needed to fetch the bottle manifest.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
private
Returns the value of prop
name
. -
#pkg_version ⇒ PkgVersion
readonly
private
Returns the value of prop
pkg_version
. -
#rebuild ⇒ Integer
readonly
private
Returns the value of prop
rebuild
. -
#sha256 ⇒ String?
readonly
private
Returns the value of prop
sha256
.
Instance Method Summary collapse
- #initialize(name:, pkg_version:, rebuild: 0, sha256: nil) ⇒ void constructor
- #revision ⇒ Integer private
- #version ⇒ Version private
Constructor Details
#initialize(name:, pkg_version:, rebuild: 0, sha256: nil) ⇒ void
|
# File '' const :name, String const :pkg_version, PkgVersion const :rebuild, Integer, default: 0 const :sha256, T.nilable(String) |
Instance Attribute Details
#name ⇒ String (readonly)
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 the value of prop name
.
|
# File '' const :name, String |
#pkg_version ⇒ PkgVersion (readonly)
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 the value of prop pkg_version
.
|
# File '' const :pkg_version, PkgVersion |
#rebuild ⇒ Integer (readonly)
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 the value of prop rebuild
.
|
# File '' const :rebuild, Integer, default: 0 |
#sha256 ⇒ String? (readonly)
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 the value of prop sha256
.
|
# File '' const :sha256, T.nilable(String) |
Instance Method Details
#revision ⇒ Integer
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.
20 21 22 |
# File 'formula_stub.rb', line 20 def revision pkg_version.revision end |
#version ⇒ Version
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.
15 16 17 |
# File 'formula_stub.rb', line 15 def version pkg_version.version end |