Hello, On Fri, May 24, 2002 at 01:50:24AM +0900, Jean-Hugues ROBERT wrote: > # My redefined method_missing() pushes the HTML code into the array > def method_missing( id, *args ) > # puts "HtmlBuf's missing_method() called for id:#{id}" > if HTML::tag? id then > #puts "HtmlBuf is implementing #{id}" > self << HTML::tag( id, *args) > else > #puts "Not an HTML tag in HtmlBuf's method_missing()" > super > end > end Oh, this is a good code using method_missing. So if using method_missing, check is necessary this way. -- Wakou Aoyama <wakou / ruby-lang.org>