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