Class: History::Release

Inherits:
Object
  • Object
show all
Defined in:
lib/history/release.rb

Overview

History release entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#changesObject (readonly)

The list of changes.



17
18
19
# File 'lib/history/release.rb', line 17

def changes
  @changes
end

#dateObject (readonly)

Release date.



23
24
25
# File 'lib/history/release.rb', line 23

def date
  @date
end

#headerObject (readonly)

The header.



11
12
13
# File 'lib/history/release.rb', line 11

def header
  @header
end

#nicknameObject (readonly)

Nick name of the release, if any.



26
27
28
# File 'lib/history/release.rb', line 26

def nickname
  @nickname
end

#notesObject (readonly)

The description.



14
15
16
# File 'lib/history/release.rb', line 14

def notes
  @notes
end

#textObject (readonly)

The full text of the release note.



8
9
10
# File 'lib/history/release.rb', line 8

def text
  @text
end

#versionObject (readonly)

Version number (as a string).



20
21
22
# File 'lib/history/release.rb', line 20

def version
  @version
end

Instance Method Details

#to_sObject

Returns the complete text.



35
36
37
# File 'lib/history/release.rb', line 35

def to_s
  text
end