Sha256: 901a9ffe8e72b8d63bbe971412026ecc2abcb5034dbc6c6ab6a2bfffce92d07c
Contents?: true
Size: 428 Bytes
Versions: 172
Compression:
Stored size: 428 Bytes
Contents
require 'irb' module Tins 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 class ::Object def examine(binding = TOPLEVEL_BINDING) IRB.examine(binding) end end end
Version data entries
172 entries across 154 versions & 9 rubygems