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

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

Overview

Reports sentence details.

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Sentence.



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

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

Instance Method Details

#to_sObject Also known as: to_str



15
# File 'lib/git/lint/reporters/lines/sentence.rb', line 15

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