diff options
| author | Jack Nagel | 2014-07-28 16:23:42 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-07-28 16:23:42 -0500 | 
| commit | 90f69372ce046f52d9da0ee3b059d3526c12c3e6 (patch) | |
| tree | 5051dd1023e4a2c2876b8dc69f1fcf16a47c250a /Library/Homebrew/patch.rb | |
| parent | 2013d153e547195de62af3c8b89558db0f2fea1e (diff) | |
| download | brew-90f69372ce046f52d9da0ee3b059d3526c12c3e6.tar.bz2 | |
Remove inheritance patch classes
Diffstat (limited to 'Library/Homebrew/patch.rb')
| -rw-r--r-- | Library/Homebrew/patch.rb | 20 | 
1 files changed, 10 insertions, 10 deletions
| diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index 2b60a2e4d..973bc3b71 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -48,22 +48,19 @@ class Patch      patches    end - -  attr_reader :whence - -  def external? -    whence == :resource -  end  end -class IOPatch < Patch +class IOPatch    attr_writer :owner    attr_reader :strip +  def external? +    false +  end +    def initialize(io, strip)      @io     = io      @strip  = strip -    @whence = :io    end    def apply @@ -83,13 +80,16 @@ class IOPatch < Patch    end  end -class ExternalPatch < Patch +class ExternalPatch    attr_reader :resource, :strip    def initialize(strip, &block)      @strip    = strip      @resource = Resource.new("patch", &block) -    @whence   = :resource +  end + +  def external? +    true    end    def owner= owner | 
