Class: Git::Lint::Reporters::Lines::Paragraph

Inherits:
Object
  • Object
show all
Defined in:
lib/git/lint/reporters/lines/paragraph.rb

Overview

Reports paragraph details.

Instance Method Summary collapse

Constructor Details

#initialize(data = Core::EMPTY_HASH) ⇒ Paragraph

Returns a new instance of Paragraph.



11
12
13
# File 'lib/git/lint/reporters/lines/paragraph.rb', line 11

def initialize data = Core::EMPTY_HASH
  @data = data
end

Instance Method Details

#to_sObject Also known as: to_str



15
16
17
# File 'lib/git/lint/reporters/lines/paragraph.rb', line 15

def to_s
  %(#{label}"#{paragraph}"\n)
end