Sha256: 004a213ac2a919e2611acb0ffa9f6816532548a57aa88a84993008fd93d53479
Contents?: true
Size: 515 Bytes
Versions: 4
Compression:
Stored size: 515 Bytes
Contents
module GitDiffParser class Line attr_reader :number, :patch_position def initialize(options = {}) fail(ArgumentError('number is required')) unless options[:number] fail(ArgumentError('content is required')) unless options[:content] fail(ArgumentError('patch_position is required')) unless options[:patch_position] @number = options[:number] @content = options[:content] @patch_position = options[:patch_position] end def changed? true end end end
Version data entries
4 entries across 4 versions & 1 rubygems