mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rss/: untabified.
* test/rss/: untabified. * lib/rss/0.9.rb (RSS::Rss#to_s): inent -> indent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0ebac90b0e
commit
891ad83098
27 changed files with 3937 additions and 3931 deletions
|
|
@ -4,29 +4,29 @@ require "rss/1.0"
|
|||
|
||||
module RSS
|
||||
|
||||
TAXO_PREFIX = "taxo"
|
||||
TAXO_NS = "http://purl.org/rss/1.0/modules/taxonomy/"
|
||||
TAXO_PREFIX = "taxo"
|
||||
TAXO_NS = "http://purl.org/rss/1.0/modules/taxonomy/"
|
||||
|
||||
Element.install_ns(TAXO_PREFIX, TAXO_NS)
|
||||
Element.install_ns(TAXO_PREFIX, TAXO_NS)
|
||||
|
||||
TAXO_ELEMENTS = []
|
||||
TAXO_ELEMENTS = []
|
||||
|
||||
%w(link).each do |x|
|
||||
if const_defined? :Listener
|
||||
Listener.install_get_text_element(x, TAXO_NS, "#{TAXO_PREFIX}_#{x}=")
|
||||
end
|
||||
TAXO_ELEMENTS << "#{TAXO_PREFIX}_#{x}"
|
||||
end
|
||||
|
||||
module TaxonomyModel
|
||||
attr_writer(*%w(title description creator subject publisher
|
||||
contributor date format identifier source
|
||||
language relation coverage rights).collect{|x| "#{TAXO_PREFIX}_#{x}"})
|
||||
end
|
||||
|
||||
class Channel; extend TaxonomyModel; end
|
||||
class Item; extend TaxonomyModel; end
|
||||
class Image; extend TaxonomyModel; end
|
||||
class TextInput; extend TaxonomyModel; end
|
||||
|
||||
%w(link).each do |x|
|
||||
if const_defined? :Listener
|
||||
Listener.install_get_text_element(x, TAXO_NS, "#{TAXO_PREFIX}_#{x}=")
|
||||
end
|
||||
TAXO_ELEMENTS << "#{TAXO_PREFIX}_#{x}"
|
||||
end
|
||||
|
||||
module TaxonomyModel
|
||||
attr_writer(*%w(title description creator subject publisher
|
||||
contributor date format identifier source
|
||||
language relation coverage rights).collect{|x| "#{TAXO_PREFIX}_#{x}"})
|
||||
end
|
||||
|
||||
class Channel; extend TaxonomyModel; end
|
||||
class Item; extend TaxonomyModel; end
|
||||
class Image; extend TaxonomyModel; end
|
||||
class TextInput; extend TaxonomyModel; end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue