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