Sha256: 6a59bae792a589b6e51699717ac0a1acdf824953e207ed78fbd8b84ef9c0c3d0
Contents?: true
Size: 556 Bytes
Versions: 4
Compression:
Stored size: 556 Bytes
Contents
# frozen_string_literal: true module Codeowners class Git class Contributor attr_reader :email, :name, :file, :insertions, :deletions def initialize(email, name, file, insertions, deletions) @email = email @name = name @file = file @insertions = insertions @deletions = deletions freeze end def to_s "#{name} <#{email}> / +#{insertions}, -#{deletions}" end def to_csv "#{name}, #{email}, #{insertions}, #{deletions}" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems