Sha256: bc57e01118a9efb06a3073bb05db98acb2d8322e9396bf98a67d03e981f8ab77
Contents?: true
Size: 574 Bytes
Versions: 26
Compression:
Stored size: 574 Bytes
Contents
# frozen_string_literal: true require "core" module Git module Lint module Reporters # Reports issues related to an invalid line within the commit body. class Line DEFAULT_INDENT = " " def initialize data = Core::EMPTY_HASH @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
26 entries across 26 versions & 1 rubygems