From: Philip Mak Date: 2002-08-11T08:44:58+09:00 Subject: extend Html4? Suppose I have this code: > $cgi = CGI.new('html4') > puts $cgi.p{"Hello, "+$cgi.b{"world"}+"!"}

Hello, world!

How can I become able to write it like this? > puts p{"Hello, "+b{"world"}+"!"} I want the "p", "b" etc. methods to be exported to my namespace. They are defined inside Html4: class CGI ... module Html4 ... end end I can't just type "extend Html4" because Html4 is defined inside the CGI class.