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 | ce4befa48818ef11eea2ce06f3cf9f1ad3e2f741 (patch) | |
tree | 39b73234009b5c704192a04644e90b75a3f47662 /lib/rss | |
parent | 8449be98d1e24b4228c26c185e252dbb8393651e (diff) | |
download | ruby-ce4befa48818ef11eea2ce06f3cf9f1ad3e2f741.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@9608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss')
-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 56fdfb3618..a4b2ba9b8f 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| [ |