From: "ara.t.howard" Date: 2009-03-24T13:57:50+09:00 Subject: Re: tagz-5.0.0 On Mar 23, 2009, at 10:48 PM, trans wrote: > > > On Mar 24, 12:30 am, "ara.t.howard" wrote: > >> - no lame method_missing approach that prevents tagz like 'type' >> from being >> generated > > If you are not using method_missing than I take it one can't use it to > generate arbitrary XML? it uses method_missing, just not in a lame way ;-) cfp:~ > ruby -r tagz -e' include Tagz.globally; puts anything_{ you_{ want_{ "can be generated" } } } ' can be generated cfp:~ > ruby -r tagz -e' include Tagz.globally; raises_an_error{} ' -e:1: undefined method `raises_an_error' for main:Object (NoMethodError) it is also very clever cfp:~ > cat a.rb require 'tagz' include Tagz.globally a = this_{ is_{ '' } } puts a b = this_{ is_not_double_escaped_{ a } } puts b cfp:~ > ruby a.rb <escaped> <escaped> cheers. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama