Class: Git::Lint::Reporters::Lines::Sentence
- Inherits:
-
Object
- Object
- Git::Lint::Reporters::Lines::Sentence
- Defined in:
- lib/git/lint/reporters/lines/sentence.rb
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Sentence
constructor
A new instance of Sentence.
- #to_s ⇒ Object
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_s ⇒ Object
12 13 14 |
# File 'lib/git/lint/reporters/lines/sentence.rb', line 12 def to_s %(#{Line::DEFAULT_INDENT}Line #{number}: "#{content}"\n) end |