Class: Bond::Jruby
Overview
Readline for Jruby
Constant Summary
Constants inherited from Readline
Readline::DefaultBreakCharacters
Class Method Summary collapse
Methods inherited from Readline
line_buffer, load_extension, setup
Class Method Details
.readline_setup ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/bond/readlines/jruby.rb', line 3 def self.readline_setup require 'readline' require 'jruby' class << Readline ReadlineExt = org.jruby.ext.readline.Readline def line_buffer ReadlineExt.s_get_line_buffer(JRuby.runtime.current_context, JRuby.reference(self)) end end end |