mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/rss/test_maker_*.rb: added tests for RSS Maker.
* lib/rss/maker.rb: added RSS Maker. * lib/rss/maker/*.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3d712cdd9d
commit
b45e1493f8
17 changed files with 95 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue