Class: Git::Lint::Reporters::Lines::Paragraph
- Inherits:
-
Object
- Object
- Git::Lint::Reporters::Lines::Paragraph
- Defined in:
- lib/git/lint/reporters/lines/paragraph.rb
Overview
Reports paragraph details.
Instance Method Summary collapse
-
#initialize(data = Core::EMPTY_HASH) ⇒ Paragraph
constructor
A new instance of Paragraph.
- #to_s ⇒ Object (also: #to_str)
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_s ⇒ Object 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 |