1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
xibbar 2013-04-11 14:27:40 +00:00
parent 639356eacd
commit ce100d3690

View file

@ -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 ]