Class: Releasinator::CurrentRelease

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#changelogObject (readonly)

Returns the value of attribute changelog.



3
4
5
# File 'lib/current_release.rb', line 3

def changelog
  @changelog
end

#versionObject (readonly)

Returns the value of attribute version.



3
4
5
# File 'lib/current_release.rb', line 3

def version
  @version
end