module WebConsole::UnsupportedPlatforms
Detect unsupported platforms and try to help the user, if there is something they can do about it.
For example, not every JRuby mode is unsupported, we can guide the user what to do to enable support for that platform.
Public Class Methods
jruby_in_non_interpreted_mode() { || ... }
click to toggle source
# File lib/web_console/unsupported_platforms.rb, line 9 def jruby_in_non_interpreted_mode return unless RUBY_PLATFORM =~ /java/ compile_mode = JRuby.runtime.instance_config.compile_mode interpreted_mode = Java::OrgJruby::RubyInstanceConfig::CompileMode::OFF yield if compile_mode != interpreted_mode end