From: Chad Fowler Date: 2003-09-11T07:00:14+09:00 Subject: Re: ANN: MetaTags 1.0 On Thu, 11 Sep 2003, Austin Ziegler wrote: # On Thu, 11 Sep 2003 04:05:26 +0900, Ben Giddings wrote: # > Richard Kilmer wrote: # >> Then: # >> class String # >> def &(klass) # >> klass.from_str(self) # >> end # >> end # >> then you can do: # >> c = "one hump or two" & Caml # > I like this better than Dave's suggestion of the Caml() function, but it # > is somewhat confusing. Since the "&" is already used, I thought maybe # > another operator might make more sense, but I discovered that there is # > only a small set of operators that seem to be overloadable. Is there a # > complete list somewhere of overloadable operators? # # irb(main):001:0> "a" & "b" # NoMethodError: undefined method `&' for "a":String # from (irb):1 # irb(main):002:0> VERSION # => "1.8.0" # Did you miss the part that said class String def &(klass) ....etc. ? Chad