Class: Bugwatch::DiffParser
- Inherits:
-
Object
- Object
- Bugwatch::DiffParser
- Defined in:
- lib/bugwatch/diff_parser.rb
Instance Method Summary collapse
-
#initialize(diff_string, code) ⇒ DiffParser
constructor
A new instance of DiffParser.
- #modifications(line_numbers = nil) ⇒ Object
Constructor Details
#initialize(diff_string, code) ⇒ DiffParser
Returns a new instance of DiffParser.
35 36 37 38 |
# File 'lib/bugwatch/diff_parser.rb', line 35 def initialize(diff_string, code) @diff_string = diff_string @code = code end |
Instance Method Details
#modifications(line_numbers = nil) ⇒ Object
40 41 42 |
# File 'lib/bugwatch/diff_parser.rb', line 40 def modifications(line_numbers=nil) parse_class_and_functions(line_numbers_of_changes || line_numbers) end |