Sha256: 48ba56df515c00137531cd95a7e35ccb8cd69cbd33aa6169acdc5111d00839c0

Contents?: true

Size: 520 Bytes

Versions: 11

Compression:

Stored size: 520 Bytes

Contents

# frozen_string_literal: true

module Git
  module Lint
    module Reporters
      module Lines
        class Sentence
          def initialize data = {}
            @data = data
          end

          def to_s
            %(#{Line::DEFAULT_INDENT}Line #{number}: "#{content}"\n)
          end

          private

          attr_reader :data

          def number
            data.fetch :number
          end

          def content
            data.fetch :content
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
git-lint-2.2.1 lib/git/lint/reporters/lines/sentence.rb
git-lint-2.2.0 lib/git/lint/reporters/lines/sentence.rb
git-lint-2.1.0 lib/git/lint/reporters/lines/sentence.rb
git-lint-2.0.0 lib/git/lint/reporters/lines/sentence.rb
git-lint-1.4.0 lib/git/lint/reporters/lines/sentence.rb
git-lint-1.3.0 lib/git/lint/reporters/lines/sentence.rb
git-lint-1.2.0 lib/git/lint/reporters/lines/sentence.rb
git-lint-1.1.1 lib/git/lint/reporters/lines/sentence.rb
git-lint-1.1.0 lib/git/lint/reporters/lines/sentence.rb
git-lint-1.0.1 lib/git/lint/reporters/lines/sentence.rb
git-lint-1.0.0 lib/git/lint/reporters/lines/sentence.rb