summaryrefslogtreecommitdiff
path: root/lib/rss/maker/2.0.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-28 06:53:41 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-28 06:53:41 +0000
commitb684f87574166a42d3305c005896bf2aa7cd37b3 (patch)
tree3c0083d0e120e624822a05df86762d20e1ac2dbc /lib/rss/maker/2.0.rb
parent49d454ea2e2dc1d447b2dc290b6ea361ad18f979 (diff)
* lib/rss/rss.rb (RSS::NotSetError): added.
* lib/rss/maker/{1.0,0.9,2.0}.rb: changed RSS Maker to raise RSS::NotSetError if required values of maker.channel are not set. * test/rss/test_maker_{1.0,0.9,2.0}.rb: changed tests to check RSS Maker raises or not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/maker/2.0.rb')
-rw-r--r--lib/rss/maker/2.0.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rss/maker/2.0.rb b/lib/rss/maker/2.0.rb
index 8ac5e7bbb3..9094b1e73b 100644
--- a/lib/rss/maker/2.0.rb
+++ b/lib/rss/maker/2.0.rb
@@ -17,6 +17,10 @@ module RSS
@title and @link and @description
end
+ def required_variable_names
+ %w(title link description)
+ end
+
class SkipDays < RSS09::Channel::SkipDays
class Day < RSS09::Channel::SkipDays::Day
end