ruby-changes:28192
From: xibbar <ko1@a...>
Date: Thu, 11 Apr 2013 23:27:58 +0900 (JST)
Subject: [ruby-changes:28192] xibbar:r40245 (trunk): * lib/cgi/html.rb: remove 'super {yield}' which is for old version.
xibbar 2013-04-11 23:27:44 +0900 (Thu, 11 Apr 2013) New Revision: 40245 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40245 Log: * lib/cgi/html.rb: remove 'super {yield}' which is for old version. Modified files: trunk/lib/cgi/html.rb Index: lib/cgi/html.rb =================================================================== --- lib/cgi/html.rb (revision 40244) +++ lib/cgi/html.rb (revision 40245) @@ -99,11 +99,7 @@ class CGI https://github.com/ruby/ruby/blob/trunk/lib/cgi/html.rb#L99 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 https://github.com/ruby/ruby/blob/trunk/lib/cgi/html.rb#L117 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 https://github.com/ruby/ruby/blob/trunk/lib/cgi/html.rb#L136 else cite end - if block_given? - super(attributes){ yield } - else - super(attributes) - end + super(attributes) end @@ -168,11 +156,7 @@ class CGI https://github.com/ruby/ruby/blob/trunk/lib/cgi/html.rb#L156 else align end - if block_given? - super(attributes){ yield } - else - super(attributes) - end + super(attributes) end @@ -435,11 +419,7 @@ class CGI https://github.com/ruby/ruby/blob/trunk/lib/cgi/html.rb#L419 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 https://github.com/ruby/ruby/blob/trunk/lib/cgi/html.rb#L811 else name end - if block_given? - super(attributes){ yield } - else - super(attributes) - end + super(attributes) end end # HtmlExtension -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/