Class: PrChangelog::Tag
- Inherits:
-
Object
- Object
- PrChangelog::Tag
- Defined in:
- lib/pr_changelog/tag.rb
Overview
A way to classify particular change lines
Instance Attribute Summary collapse
-
#emoji ⇒ Object
readonly
Returns the value of attribute emoji.
-
#sort_index ⇒ Object
readonly
Returns the value of attribute sort_index.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #formatted_title ⇒ Object
-
#initialize(emoji, title, sort_index) ⇒ Tag
constructor
A new instance of Tag.
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
#emoji ⇒ Object (readonly)
Returns the value of attribute emoji.
6 7 8 |
# File 'lib/pr_changelog/tag.rb', line 6 def emoji @emoji end |
#sort_index ⇒ Object (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 |
#title ⇒ Object (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_title ⇒ Object
14 15 16 |
# File 'lib/pr_changelog/tag.rb', line 14 def formatted_title "[#{title}]" end |