From: Robert Klemme Date: 2003-03-17T23:02:31+09:00 Subject: Re: dynamically create a method "Rudolf Polzer" schrieb im Newsbeitrag news:slrnb7bi5g.4qv.abuse@durchnull.de... > Scripsit ille �Robert Klemme� : > > Hm, I could not imagine a scenario where method_missing is used to > > actually create methods. Typically I'd create them before they are > > missed. Can you provide an example? > > With only ONE method, it's easy. For example Perl's autoloader does > exactly that. Ok, I see. Thanks! > > > And... wasn't there a way to convert a string to a symbol? > > > > Yes: > > > > irb(main):006:0> "foo".intern.type > > "intern" was it... thanks. > > Why not "to_symbol" or like that? IMHO better, since intern() reminds me of java.lang.String.intern() which returns a String and not a symbol. Regards robert