Knowing if the CLR/BCL is available

So what’s going to be the preferred way of knowing if your ruby app is
running under IronRuby? RUBY_PLATFORM can’t be used because it’s just
i386-mswin32, this doesn’t tell us that CLR interop is available…
could be handy to have…


Michael L.
[Polymath Prokrammer]
http://blog.prokrams.com

Michael L.:

So what’s going to be the preferred way of knowing if your ruby app is
running under IronRuby? RUBY_PLATFORM can’t be used because it’s just
i386-mswin32, this doesn’t tell us that CLR interop is available…
could be handy to have…

Not available yet, but IRONRUBY_VERSION will be the constant.

-John