diff options
| author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-25 01:33:50 +0000 |
|---|---|---|
| committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-11-25 01:33:50 +0000 |
| commit | 194e1ccc24a2a1011f8bff9dc50354429c58dc77 (patch) | |
| tree | 39b73234009b5c704192a04644e90b75a3f47662 /lib | |
| parent | 62955b5eb7de527c287879415c183f03f487124c (diff) | |
| download | ruby-194e1ccc24a2a1011f8bff9dc50354429c58dc77.tar.gz ruby-194e1ccc24a2a1011f8bff9dc50354429c58dc77.tar.xz ruby-194e1ccc24a2a1011f8bff9dc50354429c58dc77.zip | |
* test/rss/test_2.0.rb: added RSS 2.0 tests.
* test/rss/rss-assertions.rb: extended XML stylesheet assertion.
* lib/rss/0.9.rb: added initialize method.
* test/rss/test_1.0.rb: cleanup.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rss/0.9.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/rss/0.9.rb b/lib/rss/0.9.rb index 56fdfb361..a4b2ba9b8 100644 --- a/lib/rss/0.9.rb +++ b/lib/rss/0.9.rb @@ -339,6 +339,17 @@ module RSS install_model(name, "?") end + def initialize(url=nil, title=nil, link=nil, width=nil, height=nil, + description=nil) + super() + @url = url + @title = title + @link = link + @width = width + @height = height + @description = description + end + def to_s(need_convert=true, indent=calc_indent) rv = tag(indent) do |next_indent| [ @@ -618,6 +629,14 @@ module RSS install_model(name, nil) end + def initialize(title=nil, description=nil, name=nil, link=nil) + super() + @title = title + @description = description + @name = name + @link = link + end + def to_s(need_convert=true, indent=calc_indent) rv = tag(indent) do |next_indent| [ |
