class Git::Lint::Reporters::Line
Reports issues related to an invalid line within the commit body.
Constants
- DEFAULT_INDENT
Attributes
data[R]
Public Class Methods
new(data = {})
click to toggle source
# File lib/git/lint/reporters/line.rb, line 10 def initialize data = {} @data = data end
Public Instance Methods
to_s()
click to toggle source
# File lib/git/lint/reporters/line.rb, line 14 def to_s if content.include? "\n" Lines::Paragraph.new(data).to_s else Lines::Sentence.new(data).to_s end end
Private Instance Methods
content(= data.fetch(__method__))
click to toggle source
# File lib/git/lint/reporters/line.rb, line 26 def content = data.fetch(__method__) end