Sha256: b64f44a5330262d36a53408a13a3d26f1ba69d85093a915a09eef108fabdab73

Contents?: true

Size: 332 Bytes

Versions: 6

Compression:

Stored size: 332 Bytes

Contents

# Readline for Jruby
class Bond::Jruby < Bond::Readline
  def self.readline_setup
    require 'readline'
    require 'jruby'
    class << Readline
      ReadlineExt = org.jruby.ext.Readline
      def line_buffer
        ReadlineExt.s_get_line_buffer(JRuby.runtime.current_context, JRuby.reference(self))
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bond-0.4.3 lib/bond/readlines/jruby.rb
bond-0.4.3-java lib/bond/readlines/jruby.rb
bond-0.4.2 lib/bond/readlines/jruby.rb
bond-0.4.2-java lib/bond/readlines/jruby.rb
bond-0.4.1 lib/bond/readlines/jruby.rb
bond-0.4.0 lib/bond/readlines/jruby.rb