Class: Gf::DiffFile
- Inherits:
-
Object
- Object
- Gf::DiffFile
- Defined in:
- lib/gf.rb
Instance Method Summary collapse
- #<<(pull) ⇒ Object
-
#initialize(path) ⇒ DiffFile
constructor
A new instance of DiffFile.
- #report ⇒ Object
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 |
#report ⇒ Object
49 50 51 |
# File 'lib/gf.rb', line 49 def report template.result_with_hash(path: @path, pulls: @pulls) end |