Class: Whatsnew::LocalFiles
- Inherits:
-
Object
- Object
- Whatsnew::LocalFiles
- Defined in:
- lib/whatsnew/local_files.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ LocalFiles
constructor
A new instance of LocalFiles.
- #to_news_file ⇒ Object
Constructor Details
#initialize(path) ⇒ LocalFiles
Returns a new instance of LocalFiles.
3 4 5 |
# File 'lib/whatsnew/local_files.rb', line 3 def initialize(path) @path = path || DOT end |
Instance Method Details
#to_news_file ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/whatsnew/local_files.rb', line 7 def to_news_file if news = find_news_at_local LocalNewsFile.new(news, path) else NoNewsFile.new end end |