Class: StringPatch Private

Inherits:
EmbeddedPatch show all
Defined in:
Library/Homebrew/patch.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

A string containing a patch.

Instance Attribute Summary

Attributes inherited from EmbeddedPatch

#owner, #strip

Instance Method Summary collapse

Methods inherited from EmbeddedPatch

#apply, #external?, #inspect

Constructor Details

#initialize(strip, str) ⇒ StringPatch

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of StringPatch.


116
117
118
119
# File 'Library/Homebrew/patch.rb', line 116

def initialize(strip, str)
  super(strip)
  @str = str
end

Instance Method Details

#contentsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


121
122
123
# File 'Library/Homebrew/patch.rb', line 121

def contents
  @str
end