diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-13 14:21:21 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-13 14:21:21 +0000 |
commit | 1a22e46d60bd43bd19a089bd52fe4ee36518fe2c (patch) | |
tree | be55e41a95ba2a3894b88556a8bf5f978a1f39a3 /lib/rss/dublincore.rb | |
parent | 8b8973761ceb969c5ff95adab132b26f2c045eea (diff) |
* 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
Diffstat (limited to 'lib/rss/dublincore.rb')
-rw-r--r-- | lib/rss/dublincore.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rss/dublincore.rb b/lib/rss/dublincore.rb index afdd4d392d..016072edf1 100644 --- a/lib/rss/dublincore.rb +++ b/lib/rss/dublincore.rb @@ -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 |