* lib/cgi/html.rb: remove 'super {yield}' which is for old version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ce100d3690
commit
656abe3920
@ -99,11 +99,7 @@ class CGI
|
|||||||
else
|
else
|
||||||
href
|
href
|
||||||
end
|
end
|
||||||
if block_given?
|
super(attributes)
|
||||||
super(attributes){ yield }
|
|
||||||
else
|
|
||||||
super(attributes)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Generate a Document Base URI element as a String.
|
# Generate a Document Base URI element as a String.
|
||||||
@ -121,11 +117,7 @@ class CGI
|
|||||||
else
|
else
|
||||||
href
|
href
|
||||||
end
|
end
|
||||||
if block_given?
|
super(attributes)
|
||||||
super(attributes){ yield }
|
|
||||||
else
|
|
||||||
super(attributes)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Generate a BlockQuote element as a string.
|
# Generate a BlockQuote element as a string.
|
||||||
@ -144,11 +136,7 @@ class CGI
|
|||||||
else
|
else
|
||||||
cite
|
cite
|
||||||
end
|
end
|
||||||
if block_given?
|
super(attributes)
|
||||||
super(attributes){ yield }
|
|
||||||
else
|
|
||||||
super(attributes)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -168,11 +156,7 @@ class CGI
|
|||||||
else
|
else
|
||||||
align
|
align
|
||||||
end
|
end
|
||||||
if block_given?
|
super(attributes)
|
||||||
super(attributes){ yield }
|
|
||||||
else
|
|
||||||
super(attributes)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -435,11 +419,7 @@ class CGI
|
|||||||
buf << doctype
|
buf << doctype
|
||||||
end
|
end
|
||||||
|
|
||||||
if block_given?
|
buf << super(attributes)
|
||||||
buf << super(attributes){ yield }
|
|
||||||
else
|
|
||||||
buf << super(attributes)
|
|
||||||
end
|
|
||||||
|
|
||||||
if pretty
|
if pretty
|
||||||
CGI::pretty(buf, pretty)
|
CGI::pretty(buf, pretty)
|
||||||
@ -831,11 +811,7 @@ class CGI
|
|||||||
else
|
else
|
||||||
name
|
name
|
||||||
end
|
end
|
||||||
if block_given?
|
super(attributes)
|
||||||
super(attributes){ yield }
|
|
||||||
else
|
|
||||||
super(attributes)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end # HtmlExtension
|
end # HtmlExtension
|
||||||
|
Loading…
x
Reference in New Issue
Block a user