Class: StringPatch Private
- Inherits:
-
EmbeddedPatch
- Object
- EmbeddedPatch
- StringPatch
- Defined in:
- patch.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 string containing a patch.
Instance Attribute Summary
Attributes inherited from EmbeddedPatch
Instance Method Summary collapse
- #contents ⇒ Object private
-
#initialize(strip, str) ⇒ StringPatch
constructor
private
A new instance of StringPatch.
Methods inherited from EmbeddedPatch
Methods included from Utils::Output::Mixin
#odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #pretty_duration, #pretty_installed, #pretty_outdated, #pretty_uninstalled
Constructor Details
#initialize(strip, str) ⇒ StringPatch
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 a new instance of StringPatch.
94 95 96 97 |
# File 'patch.rb', line 94 def initialize(strip, str) super(strip) @str = str end |
Instance Method Details
#contents ⇒ Object
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.
99 100 101 |
# File 'patch.rb', line 99 def contents @str end |