Class: StringPatch

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

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

Returns a new instance of StringPatch



104
105
106
107
# File 'brew/Library/Homebrew/patch.rb', line 104

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

Instance Method Details

#contentsObject



109
110
111
# File 'brew/Library/Homebrew/patch.rb', line 109

def contents
  @str
end