Module: FormulaVersions::LegacySoftwareSpec
This module is part of an internal API. This module may only be used internally in repositories owned by Homebrew, except in casks or formulae. Third parties should avoid using this module if possible, as it may be removed or changed without warning.
Instance Method Summary collapse
- #patch(strip = :p1, src = nil, &block) ⇒ void private
- #resource(name = nil, klass = Resource, &block) ⇒ Resource? private
Methods included from LegacyChecksums
Instance Method Details
#patch(strip = :p1, src = nil, &block) ⇒ void
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.
This method returns an undefined value.
54 55 56 |
# File 'formula_versions.rb', line 54 def patch(strip = :p1, src = nil, &block) super(strip, src, &(FormulaVersions.legacy_patch_block(block) if block)) end |
#resource(name = nil, klass = Resource, &block) ⇒ Resource?
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.
46 47 48 |
# File 'formula_versions.rb', line 46 def resource(name = nil, klass = Resource, &block) super(name, (klass == Resource) ? LegacyResource : klass, &block) end |