Sha256: d71963beb6944213a98e9ea146336be244883627218cc2eba68133eea898f936
Contents?: true
Size: 553 Bytes
Versions: 3
Compression:
Stored size: 553 Bytes
Contents
module GitWrapper module Results class DiffNameStatus attr_reader :file_name attr_reader :status def initialize(file_name, status) @file_name = file_name @status = status end def self.parse(text) DiffNameStatus.new parse_file_name(text), parse_status(text) end private def self.parse_file_name(text) text[1..text.length].strip end def self.parse_status(text) FileStatus.value_of text[0] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
git_wrapper-1.0.2 | lib/git_wrapper/results/diff_name_status.rb |
git_wrapper-1.0.1 | lib/git_wrapper/results/diff_name_status.rb |
git_wrapper-1.0.0 | lib/git_wrapper/results/diff_name_status.rb |