Sha256: 98dbcbec11134615e3213c073229aa13e127bd3500bfc537dc40bbfc23c4fe64

Contents?: true

Size: 326 Bytes

Versions: 17

Compression:

Stored size: 326 Bytes

Contents

require 'irb'

module Spruz
  IRB = ::IRB

  module ::IRB
    def self.examine(binding = TOPLEVEL_BINDING)
      setup nil
      workspace = WorkSpace.new binding
      irb = Irb.new workspace
      @CONF[:MAIN_CONTEXT] = irb.context
      catch(:IRB_EXIT) { irb.eval_input }
    rescue Interrupt
      exit
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
spruz-0.2.13 lib/spruz/xt/irb.rb
spruz-0.2.12 lib/spruz/xt/irb.rb
spruz-0.2.11 lib/spruz/xt/irb.rb
spruz-0.2.10 lib/spruz/xt/irb.rb
spruz-0.2.9 lib/spruz/xt/irb.rb
spruz-0.2.8 lib/spruz/xt/irb.rb
spruz-0.2.7 lib/spruz/xt/irb.rb
spruz-0.2.6 lib/spruz/xt/irb.rb
spruz-0.2.5 lib/spruz/xt/irb.rb
spruz-0.2.2 lib/spruz/xt/irb.rb
spruz-0.2.1 lib/spruz/xt/irb.rb
spruz-0.2.0 lib/spruz/xt/irb.rb
spruz-0.1.5 lib/spruz/xt/irb.rb
spruz-0.1.3 lib/spruz/xt/irb.rb
spruz-0.1.2 lib/spruz/xt/irb.rb
spruz-0.1.1 lib/spruz/xt/irb.rb
spruz-0.1.0 lib/spruz/xt/irb.rb