diff options
author | xibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-11 14:27:44 +0000 |
---|---|---|
committer | xibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-11 14:27:44 +0000 |
commit | 656abe3920d397157db8d78d9884ecf65ae6b3e4 (patch) | |
tree | 997592ee8aec883fa28a692d9ac7d0a4aa778f46 /lib/cgi/html.rb | |
parent | ce100d36902887bfcd3ac7a6acb18cbd6091e9ec (diff) | |
download | ruby-656abe3920d397157db8d78d9884ecf65ae6b3e4.tar.gz |
* 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
Diffstat (limited to 'lib/cgi/html.rb')
-rw-r--r-- | lib/cgi/html.rb | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/lib/cgi/html.rb b/lib/cgi/html.rb index 44d9f25152..4c4f698a2b 100644 --- a/lib/cgi/html.rb +++ b/lib/cgi/html.rb @@ -99,11 +99,7 @@ class CGI else href end - if block_given? - super(attributes){ yield } - else - super(attributes) - end + super(attributes) end # Generate a Document Base URI element as a String. @@ -121,11 +117,7 @@ class CGI else href end - if block_given? - super(attributes){ yield } - else - super(attributes) - end + super(attributes) end # Generate a BlockQuote element as a string. @@ -144,11 +136,7 @@ class CGI else cite end - if block_given? - super(attributes){ yield } - else - super(attributes) - end + super(attributes) end @@ -168,11 +156,7 @@ class CGI else align end - if block_given? - super(attributes){ yield } - else - super(attributes) - end + super(attributes) end @@ -435,11 +419,7 @@ class CGI buf << doctype end - if block_given? - buf << super(attributes){ yield } - else - buf << super(attributes) - end + buf << super(attributes) if pretty CGI::pretty(buf, pretty) @@ -831,11 +811,7 @@ class CGI else name end - if block_given? - super(attributes){ yield } - else - super(attributes) - end + super(attributes) end end # HtmlExtension |