Class: Whatsnew::ReleaseFile
- Inherits:
-
Object
- Object
- Whatsnew::ReleaseFile
- Defined in:
- lib/whatsnew/release_file.rb
Instance Method Summary collapse
- #content ⇒ Object
- #file_name ⇒ Object
- #file_url ⇒ Object
-
#initialize(release) ⇒ ReleaseFile
constructor
A new instance of ReleaseFile.
- #read ⇒ Object
Constructor Details
#initialize(release) ⇒ ReleaseFile
Returns a new instance of ReleaseFile.
3 4 5 |
# File 'lib/whatsnew/release_file.rb', line 3 def initialize(release) @release = release end |
Instance Method Details
#content ⇒ Object
15 16 17 |
# File 'lib/whatsnew/release_file.rb', line 15 def content "See #{file_url}." end |
#file_name ⇒ Object
7 8 9 |
# File 'lib/whatsnew/release_file.rb', line 7 def file_name "Releases".freeze end |
#file_url ⇒ Object
11 12 13 |
# File 'lib/whatsnew/release_file.rb', line 11 def file_url release_html_url end |
#read ⇒ Object
19 20 21 |
# File 'lib/whatsnew/release_file.rb', line 19 def read "What's New:\n" "See #{file_name}: #{file_url}." end |