class Git::Cop::Reporters::Lines::Sentence

Attributes

data[R]

Public Class Methods

new(data = {}) click to toggle source
# File lib/git/cop/reporters/lines/sentence.rb, line 8
def initialize data = {}
  @data = data
end

Public Instance Methods

to_s() click to toggle source
# File lib/git/cop/reporters/lines/sentence.rb, line 12
def to_s
  %(#{Line::DEFAULT_INDENT}Line #{number}: "#{content}"\n)
end

Private Instance Methods

content() click to toggle source
# File lib/git/cop/reporters/lines/sentence.rb, line 24
def content
  data.fetch :content
end
number() click to toggle source
# File lib/git/cop/reporters/lines/sentence.rb, line 20
def number
  data.fetch :number
end