Class: History::Release
- Inherits:
-
Object
- Object
- History::Release
- Defined in:
- lib/history/release.rb
Overview
History release entry.
Instance Attribute Summary collapse
-
#changes ⇒ Object
readonly
The list of changes.
-
#date ⇒ Object
readonly
Release date.
-
#header ⇒ Object
readonly
The header.
-
#nickname ⇒ Object
readonly
Nick name of the release, if any.
-
#notes ⇒ Object
readonly
The description.
-
#text ⇒ Object
readonly
The full text of the release note.
-
#version ⇒ Object
readonly
Version number (as a string).
Instance Method Summary collapse
-
#initialize(text) ⇒ Release
constructor
A new instance of Release.
-
#to_s ⇒ Object
Returns the complete text.
Constructor Details
#initialize(text) ⇒ Release
29 30 31 32 |
# File 'lib/history/release.rb', line 29 def initialize(text) @text = text.strip parse end |
Instance Attribute Details
#changes ⇒ Object (readonly)
The list of changes.
17 18 19 |
# File 'lib/history/release.rb', line 17 def changes @changes end |
#date ⇒ Object (readonly)
Release date.
23 24 25 |
# File 'lib/history/release.rb', line 23 def date @date end |
#header ⇒ Object (readonly)
The header.
11 12 13 |
# File 'lib/history/release.rb', line 11 def header @header end |
#nickname ⇒ Object (readonly)
Nick name of the release, if any.
26 27 28 |
# File 'lib/history/release.rb', line 26 def nickname @nickname end |
#notes ⇒ Object (readonly)
The description.
14 15 16 |
# File 'lib/history/release.rb', line 14 def notes @notes end |
#text ⇒ Object (readonly)
The full text of the release note.
8 9 10 |
# File 'lib/history/release.rb', line 8 def text @text end |
#version ⇒ Object (readonly)
Version number (as a string).
20 21 22 |
# File 'lib/history/release.rb', line 20 def version @version end |
Instance Method Details
#to_s ⇒ Object
Returns the complete text.
35 36 37 |
# File 'lib/history/release.rb', line 35 def to_s text end |