Method: Genit::RssFeed#initialize

Defined in:
lib/genit/project/rss_feed.rb

#initialize(working_dir, news_files, config) ⇒ RssFeed

Public: Constructor.

working_dir - The String working directory, where live the project. news_files - An Array filled with the full path name

of the news files

config - A Hash representing the project config file (.config)



18
19
20
21
22
23
# File 'lib/genit/project/rss_feed.rb', line 18

def initialize working_dir, news_files, config
  @working_dir = working_dir
  @news_files = news_files
  @config = config
  @destination = File.join(@working_dir, 'www', 'rss.xml')
end