Method: Mutant::Repository::Diff::Ranges.parse
- Defined in:
- lib/mutant/repository/diff/ranges.rb
.parse(diff) ⇒ Set<Range<Integer>>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Parse a unified diff into ranges
17 18 19 |
# File 'lib/mutant/repository/diff/ranges.rb', line 17 def self.parse(diff) diff.lines.flat_map(&method(:parse_ranges)).to_set end |