mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cgi/html.rb (element_init): suppress redefine warning.
Don't define methods if they are already defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ead728ca7d
commit
347c554f7e
3 changed files with 11 additions and 2 deletions
|
@ -845,6 +845,7 @@ class CGI
|
|||
# Initialise the HTML generation methods for this version.
|
||||
def element_init
|
||||
extend TagMaker
|
||||
return if defined?(html)
|
||||
methods = ""
|
||||
# - -
|
||||
for element in %w[ A TT I B U STRIKE BIG SMALL SUB SUP EM STRONG
|
||||
|
@ -895,6 +896,7 @@ class CGI
|
|||
# Initialise the HTML generation methods for this version.
|
||||
def element_init
|
||||
extend TagMaker
|
||||
return if defined?(html)
|
||||
methods = ""
|
||||
# - -
|
||||
for element in %w[ TT I B BIG SMALL EM STRONG DFN CODE SAMP KBD
|
||||
|
@ -944,6 +946,7 @@ class CGI
|
|||
# Initialise the HTML generation methods for this version.
|
||||
def element_init
|
||||
extend TagMaker
|
||||
return if defined?(html)
|
||||
methods = ""
|
||||
# - -
|
||||
for element in %w[ TT I B U S STRIKE BIG SMALL EM STRONG DFN
|
||||
|
@ -994,6 +997,7 @@ class CGI
|
|||
|
||||
# Initialise the HTML generation methods for this version.
|
||||
def element_init
|
||||
return if defined?(frameset)
|
||||
methods = ""
|
||||
# - -
|
||||
for element in %w[ FRAMESET ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue