Sha256: ad299da879a8114a2f222bc4989ab65b4b04863482b61f47444396f248ec6096

Contents?: true

Size: 341 Bytes

Versions: 5

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true

module PrChangelog
  # A way to classify particular change lines
  class Tag
    attr_reader :emoji, :title, :sort_index

    def initialize(emoji, title, sort_index)
      @emoji = emoji
      @title = title
      @sort_index = sort_index
    end

    def formatted_title
      "[#{title}]"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pr_changelog-0.4.1 lib/pr_changelog/tag.rb
pr_changelog-0.4.0 lib/pr_changelog/tag.rb
pr_changelog-0.3.0 lib/pr_changelog/tag.rb
pr_changelog-0.2.0 lib/pr_changelog/tag.rb
pr_changelog-0.1.1 lib/pr_changelog/tag.rb