Class: StringPatch

Inherits:
EmbeddedPatch show all
Defined in:
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



101
102
103
104
# File 'Library/Homebrew/patch.rb', line 101

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

Instance Method Details

#contentsObject



106
107
108
# File 'Library/Homebrew/patch.rb', line 106

def contents
  @str
end