Class: Git::Lint::Reporters::Lines::Sentence

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

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ Sentence

Returns a new instance of Sentence.



8
9
10
# File 'lib/git/lint/reporters/lines/sentence.rb', line 8

def initialize data = {}
  @data = data
end

Instance Method Details

#to_sObject



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

def to_s
  %(#{Line::DEFAULT_INDENT}Line #{number}: "#{content}"\n)
end