Sha256: a91bb4dd874ebf77b7ca3ee8079a27e7a3e46ecb038a56e23ed62e8dce511a3b
Contents?: true
Size: 326 Bytes
Versions: 1
Compression:
Stored size: 326 Bytes
Contents
# frozen_string_literal: true module GitDiff class Parser attr_reader :string, :diff def initialize(string) @string = string @diff = Diff.new end def parse lines.each do |line| diff << line end end private def lines string.split("\n") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git_diff-0.4.3 | lib/git_diff/parser.rb |