Sha256: 56a5d77e3022ce1bcb4b2c6d2b09c1897eda61b1f2b6ecb5e40bdaeb81164995
Contents?: true
Size: 544 Bytes
Versions: 17
Compression:
Stored size: 544 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Reporters # Reports issues related to an invalid line within the commit body. class Line DEFAULT_INDENT = " " def initialize data = {} @data = data end def to_s content.include?("\n") ? Lines::Paragraph.new(data).to_s : Lines::Sentence.new(data).to_s end alias to_str to_s private attr_reader :data def content = data.fetch(__method__) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems