ruby-changes:28193
From: xibbar <ko1@a...>
Date: Thu, 11 Apr 2013 23:28:15 +0900 (JST)
Subject: [ruby-changes:28193] xibbar:r40244 (trunk): * lib/cgi/html.rb: fix indent. delete unnecessary code.
xibbar 2013-04-11 23:27:40 +0900 (Thu, 11 Apr 2013) New Revision: 40244 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40244 Log: * lib/cgi/html.rb: fix indent. delete unnecessary code. Modified files: trunk/lib/cgi/html.rb Index: lib/cgi/html.rb =================================================================== --- lib/cgi/html.rb (revision 40243) +++ lib/cgi/html.rb (revision 40244) @@ -12,8 +12,6 @@ class CGI https://github.com/ruby/ruby/blob/trunk/lib/cgi/html.rb#L12 s = nOE_element(element, attributes) if block_given? s << yield.to_s - else - "" end s << "</#{element.upcase}>" end @@ -903,14 +901,14 @@ class CGI https://github.com/ruby/ruby/blob/trunk/lib/cgi/html.rb#L901 end end - # - O EMPTY + # - O EMPTY instance_method(:nOE_element_def).tap do |m| for element in %w[ IMG BASE BR AREA LINK PARAM HR INPUT COL META ] define_method(element.downcase, m) end end - # O O or - O + # O O or - O instance_method(:nO_element_def).tap do |m| for element in %w[ HTML BODY P DT DD LI OPTION THEAD TFOOT TBODY COLGROUP TR TH TD HEAD ] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/