aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rss/1.0.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-27 08:47:28 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-27 08:47:28 +0000
commit2572d5e20efb42599759f97b1ec0cc66c15fb14a (patch)
tree1ce8b2aa09c9351b5e1efae7981c80d1bc916d85 /lib/rss/1.0.rb
parent0a93165e167a4d1d6b0f8a2dc0479524f49855d4 (diff)
downloadruby-2572d5e20efb42599759f97b1ec0cc66c15fb14a.tar.gz
* lib/rss/{0.9,1.0,2.0,trackback,xml-stylesheet}.rb: added
#setup_maker. * test/rss/test_setup_maker_*.rb: added tests for #setup_maker. * lib/rss/maker/base.rb(RSS::Maker::Items#max_size=): supported output item size limitation. * sample/rss/blend.rb: added sample for RSS Maker. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/1.0.rb')
-rw-r--r--lib/rss/1.0.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/rss/1.0.rb b/lib/rss/1.0.rb
index 9a61e456ba..0e3e66ea95 100644
--- a/lib/rss/1.0.rb
+++ b/lib/rss/1.0.rb
@@ -274,6 +274,14 @@ module RSS
]
end
+ def maker_target(maker)
+ maker.channel
+ end
+
+ def setup_maker_attributes(channel)
+ channel.about = self.about
+ end
+
class Image < Element
include RSS10
@@ -469,6 +477,10 @@ module RSS
["#{PREFIX}:about", true, "about"]
]
end
+
+ def maker_target(maker)
+ maker.image
+ end
end
class Item < Element
@@ -535,6 +547,10 @@ module RSS
["#{PREFIX}:about", true, "about"]
]
end
+
+ def maker_target(maker)
+ maker.items.new_item
+ end
end
class Textinput < Element
@@ -604,6 +620,10 @@ module RSS
["#{PREFIX}:about", true, "about"]
]
end
+
+ def maker_target(maker)
+ maker.textinput
+ end
end
end