diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 08:38:11 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-29 08:38:11 +0000 |
commit | 7556f66e9cd2eaca3c7cc114f56be732c8845086 (patch) | |
tree | c2966c4a6f99a28efb5799752bab1d63a4254bb9 /lib/rss | |
parent | f6c7804c16e019bda446bebc17f32049880277cd (diff) |
* lib/rss/maker/base.rb (RSS::Maker::RSSBase#make): require block.
* test/rss/test_maker_{0.9,1.0,2.0}.rb: follow the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss')
-rw-r--r-- | lib/rss/maker/base.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/rss/maker/base.rb b/lib/rss/maker/base.rb index 907451cc38..0713d276a4 100644 --- a/lib/rss/maker/base.rb +++ b/lib/rss/maker/base.rb @@ -411,12 +411,8 @@ module RSS end def make - if block_given? - yield(self) - to_feed - else - nil - end + yield(self) + to_feed end def to_feed |