Skip to content

Commit

Permalink
Have some storage of feed-local data.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Jan 12, 2009
1 parent 65012d1 commit 9d7f0c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions feeds.rb
@@ -1,6 +1,8 @@
require 'ostruct'

URL = "http://scrape.nex-3.com/"

class Feed < Struct.new(:name, :url, :opts, :block)
class Feed < Struct.new(:name, :url, :opts, :block, :data)
def render
Haml::Engine.new(<<HAML).render(self)
!!! XML
Expand All @@ -23,5 +25,5 @@ def entry
Feeds = {}
def feed(name, url, opts = {}, &block)
name = name.to_s
Feeds[name] = Feed.new(name, url, opts, block)
Feeds[name] = Feed.new(name, url, opts, block, OpenStruct.new)
end

0 comments on commit 9d7f0c3

Please sign in to comment.