--NextPart_Webmail_9m3u9jl4l_13376_1179861208_0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
ok - i'm officially an idiot.
i want to dynamically alias the names of all methods in a module... i need to string-manipulate the original method name to get the new one. alias_method only takes symbol names and the only tricks i know to convert strings to symbols (i.e., method("this_func") and SomeClass.method_eval("this_func) don't apply.
my_module.instance_modules.each{ |m|
m_new_name string stuff on m>
alias_method <what goes here?> <and what goes here?>
more generally, is there some easy way to convert strings to symbols that i've missed?
thanks
m
--NextPart_Webmail_9m3u9jl4l_13376_1179861208_0--