Class: NTYChangeLog::ChangeLog

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(versions) ⇒ ChangeLog

Returns a new instance of ChangeLog.



5
6
7
# File 'lib/nty_change_log/change_log.rb', line 5

def initialize(versions)
  @versions = versions
end

Instance Attribute Details

#versionsObject (readonly)

Returns the value of attribute versions.



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

def versions
  @versions
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/nty_change_log/change_log.rb', line 9

def to_s
  (["# Change Log"] + versions.map(&:to_s)).join("\n\n")
end