class Git::Lint::Reporters::Lines::Sentence
Public Class Methods
new(data = {})
click to toggle source
# File lib/git/lint/reporters/lines/sentence.rb, line 8 def initialize data = {} @data = data end
Public Instance Methods
content(= data.fetch(:content))
click to toggle source
# File lib/git/lint/reporters/lines/sentence.rb, line 20 def content = data.fetch(:content) end
number(= data.fetch(:number))
click to toggle source
# File lib/git/lint/reporters/lines/sentence.rb, line 18 def number = data.fetch(:number) def content = data.fetch(:content) end end
to_s(= %(
click to toggle source
# File lib/git/lint/reporters/lines/sentence.rb, line 12 def to_s = %(#{Line::DEFAULT_INDENT}Line #{number}: "#{content}"\n) private attr_reader :data def number = data.fetch(:number) def content = data.fetch(:content) end end end