Module: GitDiff

Defined in:
lib/git_diff.rb,
lib/git_diff/diff.rb,
lib/git_diff/file.rb,
lib/git_diff/hunk.rb,
lib/git_diff/line.rb,
lib/git_diff/stats.rb,
lib/git_diff/parser.rb,
lib/git_diff/version.rb,
lib/git_diff/range_info.rb,
lib/git_diff/line_number.rb,
lib/git_diff/line/context.rb,
lib/git_diff/line/addition.rb,
lib/git_diff/line/deletion.rb,
lib/git_diff/stats_calculator.rb,
lib/git_diff/line_number_range.rb,
lib/git_diff/stats_collector/hunk.rb,
lib/git_diff/stats_collector/rollup.rb,
lib/git_diff/line_number_calculation.rb

Defined Under Namespace

Modules: Line, StatsCollector Classes: Diff, File, Hunk, LineNumber, LineNumberCalculation, LineNumberRange, Parser, RangeInfo, Stats, StatsCalculator

Constant Summary collapse

VERSION =
"0.4.3"

Class Method Summary collapse

Class Method Details

.from_string(string) ⇒ Object



20
21
22
23
24
# File 'lib/git_diff.rb', line 20

def self.from_string(string)
  parser = Parser.new(string)
  parser.parse
  parser.diff
end