Class: StringPatch Private
- Inherits:
-
EmbeddedPatch
- Object
- EmbeddedPatch
- StringPatch
- Defined in:
- string_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 ⇒ String private
- #initialize(strip, str) ⇒ void constructor private
Methods inherited from EmbeddedPatch
Methods included from Utils::Output::Mixin
#issue_reporting_message, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_install_status, #pretty_installed, #pretty_outdated, #pretty_uninstalled, #pretty_upgradable
Constructor Details
#initialize(strip, str) ⇒ 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.
9 10 11 12 |
# File 'string_patch.rb', line 9 def initialize(strip, str) super(strip) @str = str end |
Instance Method Details
#contents ⇒ String
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 'string_patch.rb', line 15 def contents @str end |