Class: Git::Lint::Reporters::Lines::Paragraph
- Inherits:
-
Object
- Object
- Git::Lint::Reporters::Lines::Paragraph
- Defined in:
- lib/git/lint/reporters/lines/paragraph.rb
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Paragraph
constructor
A new instance of Paragraph.
- #to_s ⇒ Object
Constructor Details
#initialize(data = {}) ⇒ Paragraph
Returns a new instance of Paragraph.
8 9 10 |
# File 'lib/git/lint/reporters/lines/paragraph.rb', line 8 def initialize data = {} @data = data end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/git/lint/reporters/lines/paragraph.rb', line 12 def to_s %(#{label}"#{paragraph}"\n) end |