lib/git/lint/reporters/lines/sentence.rb in git-lint-2.2.1 vs lib/git/lint/reporters/lines/sentence.rb in git-lint-2.3.0
- old
+ new
@@ -7,24 +7,18 @@
class Sentence
def initialize data = {}
@data = data
end
- def to_s
- %(#{Line::DEFAULT_INDENT}Line #{number}: "#{content}"\n)
- end
+ def to_s = %(#{Line::DEFAULT_INDENT}Line #{number}: "#{content}"\n)
private
attr_reader :data
- def number
- data.fetch :number
- end
+ def number = data.fetch(:number)
- def content
- data.fetch :content
- end
+ def content = data.fetch(:content)
end
end
end
end
end