# 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

# 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

Revert "Enable plural Readline invocations sans warnings."
Revert "Enable plural Readline invocations sans warnings."

Said to be fixed by pry team on their end
This reverts commit 24c7bbbba55804d36eec2a6abc1a420b1622d148.
