From: Tim Hunter Date: 2008-08-11T01:41:26+09:00 Subject: Re: module_eval question John Mair wrote: > hey guys, im looking at the C API function rb_mod_module_eval() and i > dont > entirely understand the parameters being passed to it. can someone > please > explain how to use the rb_mod_module_eval() function ? (note im asking > about the > C API function not the ruby module_eval function, thanks :D) Looks like it corresponds fairly closely to Module#module_eval. If there is a code block available to be yielded to, it takes no arguments and yields to the block. Otherwise, it takes at least 1 argument, a string to be eval'd. You can also supply a 2nd argument or a 3rd argument, which are used as the file name and line number, respectively, in any error messages. -- RMagick: http://rmagick.rubyforge.org/