1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rss/1.0.rb: added convenience method 'resources'.

* lib/rss/taxonomy.rb: ditto.
* test/rss/rss-assertions.rb: added test for 'resources'.
* test/rss/test_taxonomy.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2005-11-17 09:01:22 +00:00
parent fb1d1a917d
commit 02c5d7e79a
5 changed files with 33 additions and 5 deletions

View file

@ -86,6 +86,16 @@ module RSS
end
end
def resources
if @Bag
@Bag.lis.collect do |li|
li.resource
end
else
[]
end
end
private
def children
[@Bag]