diff options
author | xibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-11 14:27:40 +0000 |
---|---|---|
committer | xibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-11 14:27:40 +0000 |
commit | ce100d36902887bfcd3ac7a6acb18cbd6091e9ec (patch) | |
tree | 3b274497f2b715b4a83eaacc8b3a1296f4c827fe /lib/cgi | |
parent | 639356eacd78c7e528057310584202aba42def39 (diff) | |
download | ruby-ce100d36902887bfcd3ac7a6acb18cbd6091e9ec.tar.gz |
* lib/cgi/html.rb: fix indent. delete unnecessary code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi')
-rw-r--r-- | lib/cgi/html.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/cgi/html.rb b/lib/cgi/html.rb index 59454c1ea5..44d9f25152 100644 --- a/lib/cgi/html.rb +++ b/lib/cgi/html.rb @@ -12,8 +12,6 @@ class CGI s = nOE_element(element, attributes) if block_given? s << yield.to_s - else - "" end s << "</#{element.upcase}>" end @@ -903,14 +901,14 @@ class CGI 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 ] |