Class: Releasinator::CurrentRelease
- Inherits:
-
Object
- Object
- Releasinator::CurrentRelease
- Defined in:
- lib/current_release.rb
Instance Attribute Summary collapse
-
#changelog ⇒ Object
readonly
Returns the value of attribute changelog.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(version, changelog) ⇒ CurrentRelease
constructor
A new instance of CurrentRelease.
Constructor Details
#initialize(version, changelog) ⇒ CurrentRelease
Returns a new instance of CurrentRelease.
4 5 6 7 8 9 |
# File 'lib/current_release.rb', line 4 def initialize(version, changelog) @version = version @version.freeze @changelog = changelog @changelog.freeze end |
Instance Attribute Details
#changelog ⇒ Object (readonly)
Returns the value of attribute changelog.
3 4 5 |
# File 'lib/current_release.rb', line 3 def changelog @changelog end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
3 4 5 |
# File 'lib/current_release.rb', line 3 def version @version end |