* 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:
xibbar 2013-04-11 14:27:44 +00:00
parent ce100d3690
commit 656abe3920

View File

@ -99,12 +99,8 @@ class CGI
else
href
end
if block_given?
super(attributes){ yield }
else
super(attributes)
end
end
# Generate a Document Base URI element as a String.
#
@ -121,12 +117,8 @@ class CGI
else
href
end
if block_given?
super(attributes){ yield }
else
super(attributes)
end
end
# Generate a BlockQuote element as a string.
#
@ -144,12 +136,8 @@ class CGI
else
cite
end
if block_given?
super(attributes){ yield }
else
super(attributes)
end
end
# Generate a Table Caption element as a string.
@ -168,12 +156,8 @@ class CGI
else
align
end
if block_given?
super(attributes){ yield }
else
super(attributes)
end
end
# Generate a Checkbox Input element as a string.
@ -435,11 +419,7 @@ class CGI
buf << doctype
end
if block_given?
buf << super(attributes){ yield }
else
buf << super(attributes)
end
if pretty
CGI::pretty(buf, pretty)
@ -831,12 +811,8 @@ class CGI
else
name
end
if block_given?
super(attributes){ yield }
else
super(attributes)
end
end
end # HtmlExtension