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

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

Instance Method Summary collapse

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_sObject



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

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