[MacRuby-devel] How to test if you're running MacRuby vs. Ruby?
Jeremy Voorhis
jvoorhis at gmail.com
Fri Dec 18 12:46:22 PST 2009
>
> i.e. the argument to defined? must be put in parentheses else MacRuby
> crashes.
>
Only because && binds more tightly than method application.
It would be nice if some of this code found its way into the Platform gem,
or similar. I've found myself writing Kernel#macruby? in libraries a couple
of times.
> Paul Howson
>
> _______________________________________________
> 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/20091218/7d3d518b/attachment.html>
More information about the MacRuby-devel
mailing list