mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* 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:
parent
8b8973761c
commit
1a22e46d60
7 changed files with 26 additions and 0 deletions
|
@ -113,6 +113,8 @@ module RSS
|
|||
install_date_element(x, 'rfc822')
|
||||
install_model(x, occurs)
|
||||
end
|
||||
alias date pubDate
|
||||
alias date= pubDate=
|
||||
|
||||
[
|
||||
["skipDays", "?"],
|
||||
|
|
|
@ -78,6 +78,8 @@ EOT
|
|||
install_date_element(x, 'rfc822')
|
||||
install_model(x, occurs)
|
||||
end
|
||||
alias date pubDate
|
||||
alias date= pubDate=
|
||||
|
||||
[
|
||||
["guid", '?'],
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue