diff options
| author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-03 06:43:18 +0000 |
|---|---|---|
| committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-03 06:43:18 +0000 |
| commit | c550134293e9110d856469436347c917f5ebee11 (patch) | |
| tree | 450b783d2d0ee2af19ba3efb8324e73a5e0fc1d5 /lib/rss/rss.rb | |
| parent | 49d964cc488900ec20b886ac3c898592d492c1aa (diff) | |
| download | ruby-c550134293e9110d856469436347c917f5ebee11.tar.gz ruby-c550134293e9110d856469436347c917f5ebee11.tar.xz ruby-c550134293e9110d856469436347c917f5ebee11.zip | |
* test/rss/*.rb: removed tab width configuration headers.
* test/rss/test_maker_{0.9,1.0}.rb: sort -> do_sort.
* lib/rss/maker/*.rb: changed API to RSS version independence.
* lib/rss/maker/base.rb
(RSS::Maker::XMLStyleSheets::XMLStyleSheet): checked required
(pseudo) attributes.
* lib/rss/maker/base.rb (RSS::Maker::Items): sort -> do_sort.
* lib/rss/rss.rb (RSS::BaseModel.install_date_element): avoided warning.
* lib/rss/0.9.rb (RSS::Rss#textinput): added convenience method.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/rss.rb')
| -rw-r--r-- | lib/rss/rss.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index 231fb1fb6..b6afa24b9 100644 --- a/lib/rss/rss.rb +++ b/lib/rss/rss.rb @@ -4,6 +4,7 @@ # Author:: Kouhei Sutou <kou@cozmixng.org> # Tutorial:: http://www.cozmixng.org/~rwiki/?cmd=view;name=RSS+Parser%3A%3ATutorial.en + require "time" class Time @@ -234,7 +235,7 @@ EOC # Is it need? if @#{name} class << @#{name} - alias_method(:_to_s, :to_s) unless respond_to?(:_to_s) + undef_method(:to_s) alias_method(:to_s, :#{type}) end end |
