Class: Gf::DiffFile

Inherits:
Object
  • Object
show all
Defined in:
lib/gf.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ DiffFile

Returns a new instance of DiffFile.



40
41
42
43
# File 'lib/gf.rb', line 40

def initialize(path)
  @path  = path
  @pulls = []
end

Instance Method Details

#<<(pull) ⇒ Object



45
46
47
# File 'lib/gf.rb', line 45

def <<(pull)
  @pulls << pull
end

#reportObject



49
50
51
# File 'lib/gf.rb', line 49

def report
  template.result_with_hash(path: @path, pulls: @pulls)
end