mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rss/rss.rb:
- provided default #to_s as RSS::Element#to_s. - removed RSS::Element#other_element. - RSS::Element#tag requires attributes as Hash instead of Array. * lib/rss/0.9.rb: removed #to_s to use RSS::Element#to_s. * lib/rss/1.0.rb: ditto. * lib/rss/image.rb: ditto. * lib/rss/taxonomy.rb: ditto. * lib/rss/trackback.rb: ditto. * lib/rss/2.0.rb: removed #other_element. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0976e9e32f
commit
74a0bc896b
8 changed files with 94 additions and 413 deletions
|
@ -89,16 +89,6 @@ module RSS
|
|||
def full_name
|
||||
tag_name_with_prefix(IMAGE_PREFIX)
|
||||
end
|
||||
|
||||
def to_s(need_convert=true, indent='')
|
||||
rv = tag(indent) do |next_indent|
|
||||
[
|
||||
other_element(false, next_indent),
|
||||
]
|
||||
end
|
||||
rv = convert(rv) if need_convert
|
||||
rv
|
||||
end
|
||||
|
||||
private
|
||||
def _tags
|
||||
|
@ -191,16 +181,6 @@ module RSS
|
|||
def full_name
|
||||
tag_name_with_prefix(IMAGE_PREFIX)
|
||||
end
|
||||
|
||||
def to_s(need_convert=true, indent='')
|
||||
rv = tag(indent) do |next_indent|
|
||||
[
|
||||
other_element(false, next_indent),
|
||||
]
|
||||
end
|
||||
rv = convert(rv) if need_convert
|
||||
rv
|
||||
end
|
||||
|
||||
private
|
||||
def maker_target(target)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue