Class: Brute::Changelog::Release
- Inherits:
-
Struct
- Object
- Struct
- Brute::Changelog::Release
- Defined in:
- lib/brute/changelog.rb
Overview
One ## [...] section of the file.
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#line ⇒ Object
Returns the value of attribute line.
-
#subsections ⇒ Object
Returns the value of attribute subsections.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date
51 52 53 |
# File 'lib/brute/changelog.rb', line 51 def date @date end |
#line ⇒ Object
Returns the value of attribute line
51 52 53 |
# File 'lib/brute/changelog.rb', line 51 def line @line end |
#subsections ⇒ Object
Returns the value of attribute subsections
51 52 53 |
# File 'lib/brute/changelog.rb', line 51 def subsections @subsections end |
#version ⇒ Object
Returns the value of attribute version
51 52 53 |
# File 'lib/brute/changelog.rb', line 51 def version @version end |
Instance Method Details
#empty? ⇒ Boolean
53 |
# File 'lib/brute/changelog.rb', line 53 def empty? = subsections.empty? || subsections.values.all?(&:empty?) |
#to_s ⇒ Object
54 |
# File 'lib/brute/changelog.rb', line 54 def to_s = unreleased? ? "[#{version}]" : "[#{version}] - #{date}" |
#unreleased? ⇒ Boolean
52 |
# File 'lib/brute/changelog.rb', line 52 def unreleased? = version == UNRELEASED |