Class: NTYChangeLog::ChangeLog
- Inherits:
-
Object
- Object
- NTYChangeLog::ChangeLog
- Defined in:
- lib/nty_change_log/change_log.rb
Instance Attribute Summary collapse
-
#versions ⇒ Object
readonly
Returns the value of attribute versions.
Instance Method Summary collapse
-
#initialize(versions) ⇒ ChangeLog
constructor
A new instance of ChangeLog.
- #to_s ⇒ Object
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
#versions ⇒ Object (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_s ⇒ Object
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 |