From: Rudolf Polzer Date: 2003-03-17T19:21:26+09:00 Subject: Re: dynamically create a method Scripsit ille �Robert Klemme� : > isn't this easier? > > class Fixnum > def power(exp) > self ** exp > end > end > > a=10 > a.power 2 It is, but there might be cases where one does not know the name of the method in advance. Perhaps when dynamically creating more than one method in method_missing(). And... wasn't there a way to convert a string to a symbol? -- In diesem Sinne kannst du's wagen. Verbinde dich! du sollst in diesen Tagen Mit Freuden meine K�nste sehn; Ich gebe dir, was noch kein Mensch gesehn.