Sha256: 1e94ef1c7f97689cea524c7fd7241df37e012b4bcdd42848bde2ccd5239fa703

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 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)

          private

          attr_reader :data

          def number = data.fetch(:number)

          def content = data.fetch(:content)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
git-lint-2.4.0 lib/git/lint/reporters/lines/sentence.rb
git-lint-2.3.3 lib/git/lint/reporters/lines/sentence.rb
git-lint-2.3.2 lib/git/lint/reporters/lines/sentence.rb
git-lint-2.3.1 lib/git/lint/reporters/lines/sentence.rb
git-lint-2.3.0 lib/git/lint/reporters/lines/sentence.rb