Class: PrChangelog::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/pr_changelog/tag.rb

Overview

A way to classify particular change lines

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(emoji, title, sort_index) ⇒ Tag

Returns a new instance of Tag.



8
9
10
11
12
# File 'lib/pr_changelog/tag.rb', line 8

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

Instance Attribute Details

#emojiObject (readonly)

Returns the value of attribute emoji.



6
7
8
# File 'lib/pr_changelog/tag.rb', line 6

def emoji
  @emoji
end

#sort_indexObject (readonly)

Returns the value of attribute sort_index.



6
7
8
# File 'lib/pr_changelog/tag.rb', line 6

def sort_index
  @sort_index
end

#titleObject (readonly)

Returns the value of attribute title.



6
7
8
# File 'lib/pr_changelog/tag.rb', line 6

def title
  @title
end

Instance Method Details

#formatted_titleObject



14
15
16
# File 'lib/pr_changelog/tag.rb', line 14

def formatted_title
  "[#{title}]"
end