[MacRuby-devel] MacRuby 0.5b1: Reloading classes at runtime

Matt Aimonetti mattaimonetti at gmail.com
Thu Nov 12 11:40:05 PST 2009


This is the right place to ask this kind of questions and welcome to the
list :)

What kind of file are you loading? If you are reloading a ruby, you might
want to try to use load instead of require.
http://www.fromjavatoruby.com/2008/10/require-vs-load.html

- Matt


On Thu, Nov 12, 2009 at 11:11 AM, Frank Illenberger <illenberger at mac.com>wrote:

> Hello folks,
>
> please excuse me if this is not the right mailing list to post this
> question:
>
> I am currently porting an application from PyObjC to MacRuby. Under PyObjC
> it is possible to reload a .py file containing a class definition at
> runtime. -[MacRuby evaluateFileAtPath:]  works fine for me loading a class
> for the first time. But after is loaded, it is not updated when called
> again. Does anybody know if there is a way to make this work with MacRuby?
>
> Thanks and cheers
>
> Frank
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20091112/42e6b835/attachment.html>


More information about the MacRuby-devel mailing list