class Podcastinator::FileFeed

Attributes

local_path[R]

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method Podcastinator::Feed::new
# File lib/podcastinator/file_feed.rb, line 7
def initialize(options = {})
  super

  @local_path = options[:local_path]
end

Public Instance Methods

items() click to toggle source
# File lib/podcastinator/file_feed.rb, line 13
def items
  @items ||=
    Dir.chdir(local_path) do
      Dir[*FileItem.globs].uniq.map do |filename|
        FileItem.new(self, filename)
      end
    end
end