* lib/rss/dublincore.rb (RSS::DublicCoreModel#date{,=}): added

convenient methods.
* lib/rss/0.9.rb (RSS::Rss::Channel#date{,=}): ditto.
* lib/rss/2.0.rb (RSS::Rss::Channel::Item#date{,=}): ditto.
* test/rss/: added tests for the convenient methods.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2005-02-13 14:21:21 +00:00
parent 8b8973761c
commit 1a22e46d60
7 changed files with 26 additions and 0 deletions

View file

@ -113,6 +113,8 @@ module RSS
install_date_element(x, 'rfc822')
install_model(x, occurs)
end
alias date pubDate
alias date= pubDate=
[
["skipDays", "?"],

View file

@ -78,6 +78,8 @@ EOT
install_date_element(x, 'rfc822')
install_model(x, occurs)
end
alias date pubDate
alias date= pubDate=
[
["guid", '?'],

View file

@ -26,6 +26,8 @@ module RSS
%w(date).each do |x|
install_date_element("\#{DC_PREFIX}_\#{x}", 'w3cdtf', x)
end
alias date #{DC_PREFIX}_date
alias date= #{DC_PREFIX}_date=
EOC
end