Class: WebConsole::JRuby::FakeJRubyBinding

Inherits:
Object
  • Object
show all
Defined in:
lib/web_console/integration/jruby.rb

Overview

A fake binding for JRuby in non interpreted mode.

It won’t actually evaluate any code, rather it will tell the user how to enable interpreted mode.

Constant Summary collapse

TURN_ON_INTERPRETED_MODE_TEXT =
<<-END.strip_heredoc
  JRuby needs to run in interpreted mode for introspection support.

  To turn on interpreted mode, put -J-Djruby.compile.mode=OFF in the
  JRUBY_OPTS environment variable.
END

Instance Method Summary collapse

Instance Method Details

#evalObject



58
59
60
# File 'lib/web_console/integration/jruby.rb', line 58

def eval(*)
  TURN_ON_INTERPRETED_MODE_TEXT
end